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
The code selecting the default option for time_zone_input doesn't work. TZInfo::Timezone.get will return a loaded TZInfo::DataTimezone object while zone.tzinfo is a TZInfo::TimezoneProxy, they are not equal so the reject criteria is always false.
Also, jstz.determine().timezone.name() raises an exception because determine() returns an object with a single property name so the timezone part should be removed.
The text was updated successfully, but these errors were encountered:
The code selecting the default option for time_zone_input doesn't work.
TZInfo::Timezone.get
will return a loadedTZInfo::DataTimezone
object whilezone.tzinfo
is aTZInfo::TimezoneProxy
, they are not equal so thereject
criteria is always false.What worked for me was the following:
Using just
works as well.
Also,
jstz.determine().timezone.name()
raises an exception becausedetermine()
returns an object with a single propertyname
so thetimezone
part should be removed.The text was updated successfully, but these errors were encountered: