-
Notifications
You must be signed in to change notification settings - Fork 82
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
qdate:set_timezone("UTC+8")'s error #19
Comments
And another error:
it will be 8 hours difference. |
Hi, Thanks for the report. That it crashes with "UTC+6" is definitely an error, and I will get that fixed. Apparently it doesn't like "UTC+6", but "GMT+6" is fine, but does reveal a bug in erlang_localtime with respect to "GMT+-X" format in that it seems to increment and decrement the minutes rather than hours. That's another problem. As for the qdate assumes GMT unless you've set one of the above settings to change the timezone. Conversely, For now, I recommend using the canonical names for timezones, either the abbreviations (like "CST" for "Central Standard Time"), or the location names, like "Asia/Brunei". |
The GMT+8 bug has been filed here: dmitryme/erlang_localtime#26 |
will raise error:
qdate:to_date("UTC+8", util:unixtime()). will be "{error,unknown_tz}"
"GMT" works
The text was updated successfully, but these errors were encountered: