Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.6
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
Attached patch is a first attempt at making JRuby's Time#local behave more like MRI's.
Two functionality changes:
- 7-arg version now behaves correctly around DST changes
- 10-arg version now respects tz and isdst
More documentation and tests to follow.
Attaching an updated version of the patch... all Rails' timezone-related tests now pass. The isdst flag on the 10-arg version now behaves as follows:
First case
then
Second case
then
Third case
then
First case
- if the local time described in the args to Time#local would ordinarily be subject to DST; and
- if the isdst flag is not set
thenSecond case
- if the local time described in the args to Time#local would not ordinarily be subject to DST; and
- if the isdst flag is set
thenThird case
- if the local time described in the args is an ambiguous wallclock time (e.g. in most timezones 01:30 on the day of a DST to !DST transition)
then