Skip to content
Snippets Groups Projects
Commit 503ce6a1 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Correctly handle timezones for day change messages

parent 6b1df6b4
Branches
Tags
No related merge requests found
...@@ -195,8 +195,8 @@ FROM ...@@ -195,8 +195,8 @@ FROM
AND type & ~? > 0 AND type & ~? > 0
UNION ALL UNION ALL
SELECT DISTINCT SELECT DISTINCT
strftime('%s', date(datetime(time / 1000, 'unixepoch')), 'utc') * -1000 AS messageId, strftime('%s', date(datetime(time / 1000, 'unixepoch', 'localtime')), 'utc') * -1000 AS messageId,
strftime('%s', date(datetime(time / 1000, 'unixepoch')), 'utc') * 1000 AS time, strftime('%s', date(datetime(time / 1000, 'unixepoch', 'localtime')), 'utc') * 1000 AS time,
8192 AS type, 8192 AS type,
0 AS flag, 0 AS flag,
? AS bufferId, ? AS bufferId,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment