Skip to content

Only use the UTC formatter if time was not specified as relative.#5402

Merged
enebo merged 1 commit intojruby:masterfrom
headius:relative-utc-time
Nov 2, 2018
Merged

Only use the UTC formatter if time was not specified as relative.#5402
enebo merged 1 commit intojruby:masterfrom
headius:relative-utc-time

Conversation

@headius
Copy link
Member

@headius headius commented Nov 1, 2018

Fixes #5400.

As far as I could tell, in MRI they have a tri-state flag on RTIME:

  • gmt = 0 means non-UTC format
  • gmt = 1 means UTC format
  • gmt = 2 means relative offset, non-UTC format

We have a single isTzRelative flag that, when combined with the actual zone of the DateTime object, can be used to emulate these three states.

@enebo enebo added this to the JRuby 9.2.1.0 milestone Nov 2, 2018
@enebo enebo merged commit 492ea4d into jruby:master Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants