Today I learned that Date.to_datetime sets the time to midnight *in UTC*, not the current time zone. This can create subtle bugs or test flakiness if you’re using libraries like Faker that respect ENV[‘TZ’].
0 reposts0 likes
Today I learned that Date.to_datetime sets the time to midnight *in UTC*, not the current time zone. This can create subtle bugs or test flakiness if you’re using libraries like Faker that respect ENV[‘TZ’].
0 reposts0 likes