Skip to content

Commit

Permalink
Adds support for setting TZ
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Sep 21, 2022
1 parent cbcadfe commit bfb6452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cli50/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import shutil
import subprocess
import textwrap
import tzlocal

from . import __version__

Expand Down Expand Up @@ -204,6 +205,7 @@ def main():
# Options
workdir = "/mnt"
options = ["--detach",
"--env", f"TZ={tzlocal.get_localzone_name()}",
"--env", f"WORKDIR={workdir}",
"--interactive",
"--label", LABEL,
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
description="This is CS50 CLI, with which you can mount a directory inside of an Ubuntu container.",
license="GPLv3",
install_requires=["inflect", "requests"],
install_requires=["inflect", "requests", "tzlocal"],
keywords="cli50",
name="cli50",
python_requires=">=3.6",
Expand All @@ -23,6 +23,6 @@
"console_scripts": ["cli50=cli50.__main__:main"]
},
url="https://github.com/cs50/cli50",
version="7.2.4",
version="7.3.0",
include_package_data=True
)

0 comments on commit bfb6452

Please sign in to comment.