Skip to content
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

Be more careful parsing local times in rules #19

Merged
merged 10 commits into from
Oct 20, 2018

Conversation

egorbunov
Copy link
Contributor

Hello!

This patch makes package a little bit more flexible in parsing rrule sets including local times.
For example in RDATE/EXDATE, as RFC5545 states, there may be no time zone info to parse
date time in.

That seems to impossible to implement floating time using standard go time structure. So that is
handy to make it possible for user to specify in which location such times are parsed by default.
Also it is natural to use DTSART time zone as a fallback for RDATE/EXDATE local time dates.

Egor Gorbunov added 6 commits October 18, 2018 19:09
More straightforward: parse roption first, and when create rrule
Rationale: that is needed because rules may contain local
time (time strings without time zone specified).
Also time zone parsed from DTSTART now properly used
to parse any other local times appearing in the rrule set
This parsing results to the first second of the day specified by date
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 99.088% when pulling d4eb820 on egorbunov:master into a1ff18d on teambition:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 99.088% when pulling d4eb820 on egorbunov:master into a1ff18d on teambition:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 99.088% when pulling d4eb820 on egorbunov:master into a1ff18d on teambition:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 99.088% when pulling d4eb820 on egorbunov:master into a1ff18d on teambition:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 99.088% when pulling d4eb820 on egorbunov:master into a1ff18d on teambition:master.

@coveralls
Copy link

coveralls commented Oct 18, 2018

Coverage Status

Coverage increased (+0.4%) to 99.634% when pulling 655c146 on egorbunov:master into a1ff18d on teambition:master.

@egorbunov
Copy link
Contributor Author

@rickywiens, if you are still interested, please, check my additions

Copy link
Contributor

@rickywiens rickywiens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I like this change.

@zensh zensh requested a review from damoye October 19, 2018 01:06
@zensh zensh self-assigned this Oct 19, 2018
@zensh zensh merged commit c53b0d0 into teambition:master Oct 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants