Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
49ddc9a1 by wurstsalat at 2021-12-09T08:50:01+01:00
Archive: Respect minimum datetime on Windows

- - - - -


1 changed file:

- gajim/common/storage/archive.py


Changes:

=====================================
gajim/common/storage/archive.py
=====================================
@@ -595,7 +595,7 @@ def search_log(self, account, jid, query, from_users=None, 
before=None,
             before_ts = before.timestamp()
 
         if after is None:
-            after_ts = datetime.datetime(1900, 1, 1).timestamp()
+            after_ts = datetime.datetime(1971, 1, 1).timestamp()
         else:
             after_ts = after.timestamp()
 
@@ -651,7 +651,7 @@ def search_all_logs(self, query, from_users=None, 
before=None, after=None):
             before_ts = before.timestamp()
 
         if after is None:
-            after_ts = datetime.datetime(1900, 1, 1).timestamp()
+            after_ts = datetime.datetime(1971, 1, 1).timestamp()
         else:
             after_ts = after.timestamp()
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/49ddc9a1c708db7694bdc20a84e9e8a49ad47ef0

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/49ddc9a1c708db7694bdc20a84e9e8a49ad47ef0
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to