I find problems like this terribly fascinating... first some background...
So, the summary of that long paragraph is that we have a system that is creating an expires date for a time that does not exist! So, March 9th @ 2am does not exist. To quote another site: "In spring, clocks spring forward from 1:59 a.m. to 3:00 a.m."
After a bit of digging in google, I found this issue. It seems that after so many years of PHP existence, they have still not been able to get date time handling correct. It is possible to create an invalid date/time in PHP! Because we use Java for our systems, when we get the expires time from NATS we use the most excellent Joda Time library to create a new DateTime object. This library correctly recognizes it is an invalid date and throws an IllegalArgumentException.
Fun times indeed.
No comments:
Post a Comment