News for hackers. Stuff that matters.
Re:Perl code that is syntactically correct only on Fridays by monkpit on Wednesday February 16, 2022 @10:38AM (#30361351)
I feel like this is relatively common (unfortunately)
Re:Perl code that is syntactically correct only on Fridays by Nextgrid on Wednesday February 16, 2022 @12:55PM (#30363234)
It is. I'm in London which means that our time is +/- 1 hour of UTC depending on daylight saving time.

There's been a couple projects where if I pushed a commit between 11pm and 1am some tests would break. I'm pretty sure the issue is inconsistent use of UTC vs local time which during that period will differ by one day.

Re:Perl code that is syntactically correct only on Fridays by ipsi on Wednesday February 16, 2022 @04:02PM (#30365629)
One of the perils of working in the UK is _assuming_ that you've been using UTC timestamps this whole time, and then summer rolls around and suddenly a bunch of tests start failing, and all your production logs are an hour out because you were wrong, and actually used local timestamps everywhere. Oops.