-
Notifications
You must be signed in to change notification settings - Fork 26
fix: check recurring event with correct timezone #31
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
Conversation
using local timezone leads to error in data comparison
@apognu kindly approve |
Sorry I missed this. Could you:
|
I'll just add that i think I'm affected by this bug? For example for this event:
The event is flagged as IsRecurring True, but ExcludeDates is empty I had to add the timezone mapping to the parser since "W. Europe Standard Time" was not parsed by go and they returned as "UTC". var tzMapping = map[string]string{
"W. Europe Standard Time": "Europe/Stockholm",
}
gocal.SetTZMapper(func(s string) (*time.Location, error) {
if tzid, ok := tzMapping[s]; ok {
return time.LoadLocation(tzid)
}
return nil, fmt.Errorf("")
}) |
Param TZID is specified with timezone, but ignored in @apognu , should I add a test to the gocal_test.go file? |
Thank you for explaining, it's clearer now. Please add a test (a simple one will do, one event with a timezone-aware recurrence rule) and check that the repeated events happen at the right time. Once that's done, I see no problem merging this in. |
@apognu , I added the test file. Please let me know if you have any questions. |
LGTM. |
Could you create a new release for this? Like v0.9.1 ? |
Done. 👍 |
Just wanted to say that this seems to have fixed my issue, thanks! |
using local timezone leads to error in data comparison