Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by ryao on Thursday May 29, 2025 @09:34PM
(#44131975)
> If the user has traveled to a different timezone, the time is now being converted to a localtime in the past that is different than it actually was when it happened.
I consider this to be a desirable behavior.
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS...
by isleyaardvark on Friday May 30, 2025 @10:21AM
(#44136505)
For most cases I think that would be correct, but I will say if I am looking at my ATM withdrawals for a trip I made to San Francisco, I would like the time shown to be the SF time and not that of my local hometown, and vice versa if I'm in SF.
edit: another commenter shared this link with an example: https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a...
I like their "Principle of preserving supplied data".