alt-glitch
8a2fb31fbc
fix(time): session start in the system prompt uses its own date's UTC offset
...
_session_start_like localised the naive session-id stamp with
datetime.now().astimezone().tzinfo, which is a fixed offset for today.
A stamp from the other DST half got the wrong offset: under
Europe/London on a summer day, session 20260115_003000_* rendered as
"Conversation started: Wednesday, January 14, 2026". dt.astimezone()
applies the offset in force at the stamp itself, as
gateway/message_timestamps.py already does.
Also replace the two remaining datetime.utcfromtimestamp() calls
(deprecated since Python 3.12) with fromtimestamp(..., timezone.utc).
The output strings are unchanged. tui_gateway/methods_session.py runs
with tui_gateway/server.py's globals, so server.py now imports timezone.
2026-09-28 19:04:53 +05:30
..
2026-09-27 22:30:55 -07:00
2026-09-26 22:21:47 +05:30
2026-09-24 23:37:27 -04:00
2026-09-24 22:26:32 +05:30
2026-09-24 22:26:32 +05:30
2026-09-24 22:29:32 +05:30
2026-09-27 02:02:41 +05:30
2026-09-25 21:27:06 +05:30
2026-09-26 19:27:41 +05:30
2026-09-24 22:26:32 +05:30
2026-09-25 21:27:06 +05:30
2026-09-27 00:38:34 +05:30
2026-09-26 07:14:26 +05:30
2026-09-24 22:26:32 +05:30
2026-09-28 06:06:17 -07:00
2026-09-27 02:02:41 +05:30
2026-09-24 13:13:35 -04:00
2026-09-25 21:27:06 +05:30
2026-09-24 15:58:19 +05:30
2026-09-25 21:27:06 +05:30
2026-09-26 23:49:25 +05:30
2026-09-27 20:45:44 +05:30
2026-09-27 06:54:56 -05:00
2026-09-27 18:20:40 +05:30
2026-09-27 18:27:37 +05:30
2026-09-28 07:29:40 +00:00
2026-09-26 18:00:17 -05:00
2026-09-24 22:26:11 +05:30
2026-09-24 22:32:05 +05:30
2026-09-24 11:57:56 -05:00
2026-09-26 11:22:06 -07:00
2026-09-27 18:37:01 +05:30
2026-09-26 17:59:52 -05:00
2026-09-27 00:48:22 +05:30
2026-09-25 21:28:32 +05:30
2026-09-28 17:59:17 +05:30
2026-09-27 00:04:22 +05:30
2026-09-27 00:04:22 +05:30
2026-09-28 05:37:55 -07:00
2026-09-24 22:27:18 +05:30
2026-09-24 22:36:08 +05:30
2026-09-27 13:19:41 -05:00
2026-09-27 00:33:45 +05:30
2026-09-25 12:56:32 -04:00
2026-09-27 04:59:47 -04:00
2026-09-24 21:26:28 +05:30
2026-09-27 00:34:15 +05:30
2026-09-24 18:01:46 +05:30
2026-09-24 18:01:46 +05:30
2026-09-25 01:08:23 -05:00
2026-09-28 02:26:21 -07:00
2026-09-24 18:01:21 +05:30
2026-09-28 03:34:07 -07:00
2026-09-25 21:27:06 +05:30
2026-09-26 19:27:41 +05:30
2026-09-25 12:07:32 -05:00
2026-09-24 15:58:19 +05:30
2026-09-27 01:55:21 +05:30
2026-09-24 22:27:18 +05:30
2026-09-26 06:10:53 +05:30
2026-09-24 22:37:10 +05:30
2026-09-26 23:49:25 +05:30
2026-09-24 18:01:21 +05:30
2026-09-26 23:45:36 +05:30
2026-09-25 21:27:06 +05:30
2026-09-27 00:19:50 +05:30
2026-09-25 21:28:32 +05:30
2026-09-24 22:32:05 +05:30
2026-09-24 22:32:05 +05:30
2026-09-24 22:38:35 +05:30
2026-09-24 22:33:58 +05:30
2026-09-27 00:38:34 +05:30
2026-09-28 05:37:55 -07:00
2026-09-24 22:41:10 +05:30
2026-09-27 18:34:12 +05:30
2026-09-25 21:28:32 +05:30
2026-09-25 16:24:21 -05:00
2026-09-26 22:39:42 +05:30
2026-09-26 23:49:25 +05:30
2026-09-27 00:48:22 +05:30
2026-09-24 09:20:50 -04:00
2026-09-26 06:10:53 +05:30
2026-09-24 22:24:48 +05:30
2026-09-24 22:25:06 +05:30
2026-09-26 06:26:48 +05:30
2026-09-24 22:26:23 +05:30
2026-09-27 02:48:48 -05:00
2026-09-24 22:29:32 +05:30
2026-09-24 22:25:37 +05:30
2026-09-24 05:29:27 -05:00
2026-09-27 02:22:23 +05:30
2026-09-28 19:04:53 +05:30
2026-09-26 21:00:46 -05:00
2026-09-24 22:41:10 +05:30
2026-09-26 20:29:47 -05:00
2026-09-27 18:38:58 +05:30
2026-09-27 20:45:44 +05:30
2026-09-27 13:20:28 -05:00
2026-09-24 22:27:18 +05:30
2026-09-24 22:26:23 +05:30
2026-09-26 20:40:40 -05:00
2026-09-28 17:59:17 +05:30
2026-09-25 12:27:24 -05:00
2026-09-26 17:15:30 -05:00
2026-09-24 15:58:19 +05:30