Topic: Possible Bug? TimeZone or Ruby?
Hi,
I tried to find a key by a given value using invert. But instead of 'Berlin' I only get 'Bern' when searching for 'Europe/Berlin'.
For 'Europe/Paris' and 'Europe/London' everything works fine. Is this a bug, or am I missing something?
irb(main):002:0 ActiveSupport::TimeZone::MAPPING['Berlin']
"Europe/Berlin"
irb(main):004:0
ActiveSupport::TimeZone::MAPPING.invert['Europe/Berlin']
"Bern"
Last edited by be_bo (2013-01-30 16:25:36)