add 2 hours for gitlab ci

This commit is contained in:
Mickael 2019-08-30 21:16:24 +02:00
parent d488019218
commit 7b22c4d10d

View file

@ -1,10 +1,13 @@
import os, json
from datetime import datetime
from datetime import datetime, timedelta
def main():
# I must add 2 hours on gitlab CI
nowongitlab = datetime.now() + timedelta(hours=2)
info = {
"lastupdate": datetime.strftime(datetime.now(), "%d/%m/%Y %X")
"lastupdate": datetime.strftime(nowongitlab, "%d/%m/%Y %X")
}
save(info)