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
startOf always returns non utc date even if date was utc #85
Comments
Jiffy(Jiffy().utc()).startOf(Units.DAY).dateTime.toUtc(); |
The problem I see is that we cannot get the start/end in a specific timezone. It always uses the local timezone.
|
any news on this one ? I chose Jiffy for date-time manipulation since it promises to make tasks like date/time diff calculation easier. Dart's built-in |
well I think strictly speaking UTC is not a time zone, but we need a time zone to calculate |
Describe the bug
Jiffy(Jiffy().utc()).dateTime.isUtc
returns trueJiffy(Jiffy().utc()).startOf(Units.MONTH).isUtc
returns falseExpected behavior
If date was in UTC,
startOf
should return UTC DateTime objectSmartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: