Skip to content

Commit 80bad26

Browse files
Update datetime timezone handling after fix
This patch fixes Tarantool output on using `datetime.new()` and `datetime.set()` with timezones specified. After tarantool/tarantool#10970 datetime objects created/modified with timestamps plus timezones are handled differently from the way they are described in the doc. Now setting timezone only changes the local time of day represented by the datetime object instead of affecting the timestamp. PR tarantool/tarantool#10970 Issue tarantool/tarantool#10363
1 parent 75205a7 commit 80bad26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/reference/reference_lua/datetime.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Functions
221221
tz = 'Europe/Moscow'
222222
}
223223
---
224-
- 2022-07-01T08:30:05.122999906 Europe/Moscow
224+
- 2022-07-01T11:30:05.122999906 Europe/Moscow
225225
...
226226
227227
tarantool> datetime.new {
@@ -230,7 +230,7 @@ Functions
230230
tz = 'Europe/Moscow'
231231
}
232232
---
233-
- 2022-07-01T08:30:05.000000123 Europe/Moscow
233+
- 2022-07-01T11:30:05.000000123 Europe/Moscow
234234
...
235235
236236
@@ -713,7 +713,7 @@ datetime_object
713713
714714
tarantool> dt:set {tzoffset = 60}
715715
---
716-
- 2021-08-20T18:25:20.567+0100
716+
- 2021-08-20T16:25:20.567+0100
717717
...
718718
719719

0 commit comments

Comments
 (0)