File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -197,18 +197,22 @@ impl PyScalar {
197
197
TimeUnit :: Second => arr
198
198
. as_primitive :: < TimestampSecondType > ( )
199
199
. value_as_datetime_with_tz ( 0 , tz)
200
+ . map ( |v| v. fixed_offset ( ) )
200
201
. into_py_any ( py) ?,
201
202
TimeUnit :: Millisecond => arr
202
203
. as_primitive :: < TimestampMillisecondType > ( )
203
204
. value_as_datetime_with_tz ( 0 , tz)
205
+ . map ( |v| v. fixed_offset ( ) )
204
206
. into_py_any ( py) ?,
205
207
TimeUnit :: Microsecond => arr
206
208
. as_primitive :: < TimestampMicrosecondType > ( )
207
209
. value_as_datetime_with_tz ( 0 , tz)
210
+ . map ( |v| v. fixed_offset ( ) )
208
211
. into_py_any ( py) ?,
209
212
TimeUnit :: Nanosecond => arr
210
213
. as_primitive :: < TimestampNanosecondType > ( )
211
214
. value_as_datetime_with_tz ( 0 , tz)
215
+ . map ( |v| v. fixed_offset ( ) )
212
216
. into_py_any ( py) ?,
213
217
}
214
218
} else {
You can’t perform that action at this time.
0 commit comments