kubo / ruby-oci8

Ruby-oci8 - Oracle interface for ruby
Other
169 stars 75 forks source link

Fix date/time test (expected time timezone) #146

Closed javornikolov closed 7 years ago

javornikolov commented 7 years ago

Time.now offset leads to unstable test due to DST sensitivity (e.g. the test is broken if executed in winter for Europe/Helsinki time zone). The solution is to take the offset of the specific local date/time.

kubo commented 7 years ago

Thanks you! I'm unfamiliar with DST. Japan has not used DST except for a few years occupied by the U.S.