From e3dc0dd0fad4d796a42c8696537d15afd83af2c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Caletka?= Date: Mon, 9 Jul 2018 13:31:29 +0200 Subject: [PATCH] Add note to my future self --- dzonegit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dzonegit.py b/dzonegit.py index c8cc0f8..daca55d 100644 --- a/dzonegit.py +++ b/dzonegit.py @@ -107,6 +107,8 @@ def get_increased_serial(old): old = int(old) now = int(time.time()) todayserial = int(datetime.date.today().strftime("%Y%m%d00")) + # Note to my future self: This is expected to break on 2034-06-16 + # as unix timestamp will become in the same range as YYMMDDnn serial if 1e9 < old < now: # Serial is unix timestamp return str(now)