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

Correct seconds calculations, "all day" bug, use GMT times #8

Closed
wants to merge 3 commits into from

Conversation

will-russell
Copy link

@will-russell will-russell commented Sep 4, 2019

fixes #4

Ensure that GMT year, month, day, hour, and minute are used for the ICS values (which are to be in "Zulu", or "GMT" time).
Set seconds variables to actual seconds instead of minutes.
Include start and end hours in check for "all day" status - if time is "11:00:00" to "12:00:00" it should show as one hour, not "all day".

fixes matthiasanderer#4 

Set seconds variables to actual seconds instead of minutes.
Include start and end hours in check for "all day" status - if time is "11:00:00" to "12:00:00" it should show as one hour, not "all day".
Remove "VALUE=DATE" sub statement to allow utilizing times for non-all day events. "VALUE=DATE" should remain for events that are midnight-to-midnight.
@will-russell will-russell changed the title Correct seconds calculations, "all day" bug Correct seconds calculations, "all day" bug, use GMT times Sep 4, 2019
Offset start and end date by the time zone offset so that the hours, etc. will be in UTC instead of local time. Note that the timezone of the dates is unaffected - we are simply offsetting by the time zone offset so that we can get the year, month, days, hours, and minutes from the equivalent UTC time.
@will-russell will-russell deleted the patch-1 branch February 26, 2020 15:35
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.

'start_seconds' and 'end_seconds' bug + "all day" bug
1 participant