[TZInfo-users] Resolving local_to_utc ambiguities
stephanwehner at gmail.com
Fri Nov 13 14:36:00 EST 2009
it says about the method "Timezone#local_to_utc(local, dst = nil)
"If the dst parameter does not resolve the ambiguity, and a block is
specified, it is called."
(The ambiguity being that some local times may correspond to several
UTC times, for example, when switching to daylight savings time, when
there are "two 2 AMs".)
In what circumstances would it happen that dst=true or false is not
enough to "resolve the ambiguity"?
Are there ever more than two elements in the "periods" array that is
passed to the block to pick from?
-> http://stephan.sugarmotor.org (blog and homepage)
-> http://stephansmap.org -- http://blog.stephansmap.org
More information about the TZInfo-users