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

Duration calculation incorrect (PHP bug 52480) #205

Closed
stephenharris opened this issue Jul 15, 2014 · 0 comments
Closed

Duration calculation incorrect (PHP bug 52480) #205

stephenharris opened this issue Jul 15, 2014 · 0 comments
Labels

Comments

@stephenharris
Copy link
Owner

This bug took the form of an incorrect end date. When calculating occurrence start and end dates, Event Organiser generates the start dates according to the given schedule (if any), and calculates the end dates of those occurrences by using those duration of the first date.

That duration calculation can be incorrect ( a la date_diff(), see PHP bug 52480) resulting in incorrect end dates. The problem affects users with

  • PHP 5.3+
  • Timezone set to something other than UTC
  • Events where the start/end date is close to the beginning/end of a month.

Fortunately the plug-in for php 5.2 installs, the plug-in calculates duration in php 5.2 friendly way (date_diff() requires php 5.3+). So the fix is simply to use that workaround for all versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant