You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, strtotime will not work with IANA timezones such as US/Eastern.
Looking at the code, it seems like you could return right away if the passed in string isn't relative instead of trying to regenerate the time with strtotime:
I didn't make a PR as I don't know the system well enough to ensure this works and I couldn't get the PHPUnit tests to work without any changes. Hoping you can take a look at this and check if it's correct or not.
The text was updated successfully, but these errors were encountered:
The following code will produce an error due to the use of an IANA timezone:
The culprit seems to be the constructor, with the following code:
Specifically,
strtotime
will not work with IANA timezones such as US/Eastern.Looking at the code, it seems like you could return right away if the passed in string isn't relative instead of trying to regenerate the time with
strtotime
:I didn't make a PR as I don't know the system well enough to ensure this works and I couldn't get the PHPUnit tests to work without any changes. Hoping you can take a look at this and check if it's correct or not.
The text was updated successfully, but these errors were encountered: