Java8 dates and times were supposed to be a lot easier and designed by the Joda-Time guys.
One problem, after struggling for a full working day - LocalDateTimes are NOT Local! Maybe in the sense of localized? They are definitely UTC, not your local timezone. Looking back at it, it says that it doesn't capture timezone information in the docs, but I didn't look at the docs because I thought that the name was blindingly obvious.
Copyright BBC |
As they say, there are two hard things in Computer Science: caching, naming things and off by one errors.
No comments:
Post a Comment