-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
toText dont take local time into account #39
Comments
This is intentional due to rrule's handling of If you have a I've updated the README to make this clearer as part of v0.2.10. |
Hello @JonasWanke thanks for your response, but may be I did not explain the issue the right way... |
so basically let me take and example, I want to create an rrule:
my timezone is @JonasWanke I hope you can understand with this. |
Maybe I should clarify an important difference:
If you convert your Instead, you should call (The underlying problem is Dart's very limited |
I understand very well your point....but using |
You don't have to use |
@JonasWanke The backend dont hold the local timezone of the user. |
@JonasWanke the solution I proposed dont alter the rrule, its only render a differrent Output when using toText() |
But your proposed change of calling |
Describe the bug
While creating a recurrence, We convert from local time to utc time, but when we try to show to the user with
toText()
, it showsthe utc time but it should show the Local time
.example:
My Time zone is
UTC+1
;var untilDate = DateTime.parse('2022-06-16 14:57:30');
The generate recurrence is :
When I use rr.toText() is shows
until 2022-06-16 13:57:30
but it show show2022-06-16 14:57:30
Environment:
rrule: 0.2.9
The text was updated successfully, but these errors were encountered: