We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code snippet on master:
master
import 'package:timezone/data/latest.dart' as tz; void main() { tz.initializeTimeZones(); final location = getLocation('America/Detroit'); final datetime = TZDateTime(location, 2023, 3, 12, 2); print('local: ${datetime.toIso8601String()}'); print(datetime.millisecondsSinceEpoch); }
Produces the following:
local: 2022-03-13T01:00:00.000-0500 1647151200000
This is incorrect since the time should 3am instead of 1am due to DST, https://www.timeanddate.com/time/change/usa/detroit?year=2023.
From a brief look it's probably related to how the timezone is derived in https://github.com/srawlins/timezone/blob/master/lib/src/date_time.dart#L22.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The following code snippet on
master
:Produces the following:
This is incorrect since the time should 3am instead of 1am due to DST, https://www.timeanddate.com/time/change/usa/detroit?year=2023.
From a brief look it's probably related to how the timezone is derived in https://github.com/srawlins/timezone/blob/master/lib/src/date_time.dart#L22.
The text was updated successfully, but these errors were encountered: