mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-03-06 16:17:22 +00:00
set tz variable globally as UTC
This commit is contained in:
parent
e9bd0b122e
commit
50069d1eb3
2 changed files with 4 additions and 1 deletions
archivebox
|
@ -738,6 +738,9 @@ def load_all_config():
|
|||
CONFIG = load_all_config()
|
||||
globals().update(CONFIG)
|
||||
|
||||
# Timezone set as UTC
|
||||
os.environ["TZ"] = 'UTC'
|
||||
|
||||
|
||||
############################## Importable Checkers #############################
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ def log_cli_command(subcommand: str, subcommand_args: List[str], stdin: Optional
|
|||
cmd = ' '.join(('archivebox', subcommand, *subcommand_args))
|
||||
stdin_hint = ' < /dev/stdin' if not stdin.isatty() else ''
|
||||
stderr('{black}[i] [{now}] ArchiveBox v{VERSION}: {cmd}{stdin_hint}{reset}'.format(
|
||||
now=datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S'),
|
||||
now=datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
||||
VERSION=VERSION,
|
||||
cmd=cmd,
|
||||
stdin_hint=stdin_hint,
|
||||
|
|
Loading…
Add table
Reference in a new issue