2019-08-30 19:34:40 +00:00
|
|
|
import os, json, pytz
|
2019-08-30 19:16:24 +00:00
|
|
|
from datetime import datetime, timedelta
|
2019-09-01 11:12:30 +00:00
|
|
|
from common.savehelper import save
|
2019-08-30 19:07:25 +00:00
|
|
|
|
|
|
|
def main():
|
|
|
|
|
2019-08-30 19:34:40 +00:00
|
|
|
zone = ' '.join(pytz.country_timezones['fr'])
|
|
|
|
tz = pytz.timezone(zone)
|
|
|
|
now = datetime.now(tz)
|
2019-08-30 19:16:24 +00:00
|
|
|
|
2019-08-30 19:07:25 +00:00
|
|
|
info = {
|
2019-08-30 19:34:40 +00:00
|
|
|
"lastupdate": datetime.strftime(now, "%d/%m/%Y %X")
|
2019-08-30 19:07:25 +00:00
|
|
|
}
|
2019-09-01 11:12:30 +00:00
|
|
|
save(info, "global")
|
2019-08-30 19:07:25 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|