Slide 12
Slide 12 text
@AaronLasseigne
DateTime doesn’t support time zones it supports offsets from UTC.
Time offsets?
irb>
DateTime.new(2013,
1,
1,
0,
0,
0,
'CST').to_s
#
'CST'
or
'-‐6:00'
#
=>
"2013-‐01-‐01T00:00:00-‐06:00"
irb>
DateTime.new(2013,
1,
1,
0,
0,
0,
'CDT').to_s
#
'CDT'
or
'-‐5:00'
#
=>
"2013-‐01-‐01T00:00:00-‐05:00"
irb>
DateTime.new(2013,
1,
1,
0,
0,
0,
'Central
Time
(US
&
Canada)').to_s
#
=>
"2013-‐01-‐01T00:00:00+00:00"