Skip to content

Commit 122bd53

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 specifying a timezone only changes the displayed time instead of affecting the timestamp representing the time passed from 1970-01-01. Thus, setting a new timezone properly affects hours/minutes. PR tarantool/tarantool#10970 Issue tarantool/tarantool#10363
1 parent 75205a7 commit 122bd53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: 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)