-
Notifications
You must be signed in to change notification settings - Fork 71
Broken FromField UTCTime instance for some strange old timestamps #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, I know of this problem. You should probably read the discussion in #69. I think you'll find it enlightening. I haven't been motivated to fix it because I doubt many people are impacted by it. (And actually, for dates hundreds of years in the past, the timezone database isn't really accurate, and probably cannot be accurate. My limited understanding is that at that point in history the notion of time was sufficiently muddled that you really need a specialist historian to even interpret what day it is, as the precise context can make a difference of up to a few weeks.) As for properly supporting offsets with seconds in them, we would have to get away from Alternatively, if all you care about is converting to |
Thank you for explanation, I think |
Ok, thanks to a bit of friendly haranguing from Michael Snoyman, I did end up committing a proper fix for this. As soon as I release the latest commit onto Hackage, there will no longer be any need to |
Tested with master and some older version, here is the error:
Seems that parser don't know how to deal with seconds in timezone.
Can someone suggest any workaround for this?
The text was updated successfully, but these errors were encountered: