-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more careful when parsing times with timezones.
Consider the timezone abbreviation "IST" for Asia/Kolkata. Unfortuately, the PHP strtotime() function, when it encounters a timezone abbreviation, uses the first matching timezone definition in the timezone database, which for IST is Asia/Jerusalem!, rather than preferring the timezone that equals the current timezone, if there is one. And abbreviations like GMT-5 (for Etc/GMT-5) aren't even parsed. Work around this with regular expressions. Reported by Aakash Sharma.
- Loading branch information
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters