News for hackers. Stuff that matters.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by _alternator_ on Tuesday March 31, 2026 @11:30AM (#47588850)
Leap seconds are their own nightmare. UNIX time ignores them, btw, so that the unix epoch is 86400*number of days since 1/1/1970 + number of seconds since midnight. The behavior at the instance of a leap second is undefined.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by adrianN on Tuesday March 31, 2026 @12:07PM (#47589481)
Undefined behavior is worse than complicated defined behavior imo.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by oasisbob on Tuesday March 31, 2026 @01:18PM (#47590572)
That's a good way of describing that. It's far too easy to pretend UNIX timestamps would correspond to a stopwatch counting from 1/1/1970.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by _alternator_ on Tuesday March 31, 2026 @02:43PM (#47591682)
Right. Currently epoch time is off the stopwatch time by 27 seconds.