mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-20 05:11:40 +02:00
set tz variable globally as UTC
This commit is contained in:
@@ -738,6 +738,9 @@ def load_all_config():
|
|||||||
CONFIG = load_all_config()
|
CONFIG = load_all_config()
|
||||||
globals().update(CONFIG)
|
globals().update(CONFIG)
|
||||||
|
|
||||||
|
# Timezone set as UTC
|
||||||
|
os.environ["TZ"] = 'UTC'
|
||||||
|
|
||||||
|
|
||||||
############################## Importable Checkers #############################
|
############################## Importable Checkers #############################
|
||||||
|
|
||||||
|
@@ -164,7 +164,7 @@ def log_cli_command(subcommand: str, subcommand_args: List[str], stdin: Optional
|
|||||||
cmd = ' '.join(('archivebox', subcommand, *subcommand_args))
|
cmd = ' '.join(('archivebox', subcommand, *subcommand_args))
|
||||||
stdin_hint = ' < /dev/stdin' if not stdin.isatty() else ''
|
stdin_hint = ' < /dev/stdin' if not stdin.isatty() else ''
|
||||||
stderr('{black}[i] [{now}] ArchiveBox v{VERSION}: {cmd}{stdin_hint}{reset}'.format(
|
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,
|
VERSION=VERSION,
|
||||||
cmd=cmd,
|
cmd=cmd,
|
||||||
stdin_hint=stdin_hint,
|
stdin_hint=stdin_hint,
|
||||||
|
Reference in New Issue
Block a user