Merge pull request #2705 from element-hq/feature/bma/ghPagesFix

Gh pages fix and Localazy fix
This commit is contained in:
Benoit Marty 2024-04-15 13:26:33 +02:00 committed by GitHub
commit 4be41294bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -18,6 +18,7 @@
import os
import re
import sys
import time
from util import compare
@ -134,6 +135,9 @@ def generateJavascriptFile():
if os.path.exists(translatedFile):
# Get the last modified date of the file in seconds and round to days
date = os.popen("git log -1 --format=%ct -- \"" + translatedFile + "\"").read().strip()
# if date is empty, use today's date
if date == "":
date = time.time()
dateDay = int(date) // 86400
dataForFile.append(dateDay)
else: