Missed some .gst refs and update timezone

This commit is contained in:
james
2022-03-28 23:02:49 -04:00
parent 11851a579e
commit b171083f9e
4 changed files with 8 additions and 8 deletions

View File

@@ -1007,11 +1007,11 @@ def get_user_timezone() -> str:
Returns
-------
str
user timezone based on timezone.gst file
user timezone based on timezone.openbb file
"""
filename = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"timezone.gst",
"timezone.openbb",
)
if os.path.isfile(filename):
with open(filename) as f:
@@ -1025,7 +1025,7 @@ def get_user_timezone_or_invalid() -> str:
Returns
-------
str
user timezone based on timezone.gst file or INVALID
user timezone based on timezone.openbb file or INVALID
"""
user_tz = get_user_timezone()
if is_timezone_valid(user_tz):
@@ -1043,7 +1043,7 @@ def replace_user_timezone(user_tz: str) -> None:
"""
filename = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"timezone.gst",
"timezone.openbb",
)
if os.path.isfile(filename):
with open(filename, "w") as f:
@@ -1055,7 +1055,7 @@ def replace_user_timezone(user_tz: str) -> None:
else:
console.print("Timezone selected is not valid", "\n")
else:
console.print("timezone.gst file does not exist", "\n")
console.print("timezone.openbb file does not exist", "\n")
def str_to_bool(value) -> bool:

View File

@@ -1 +0,0 @@
America/New_York

1
openbb_terminal/timezone.openbb vendored Normal file
View File

@@ -0,0 +1 @@
US/Eastern

View File

@@ -104,10 +104,10 @@ class TerminalController(BaseController):
[info]The previous logic also holds for when launching the terminal.[/info]
E.g. '$ python terminal.py /stocks/disc/ugs -n 3/../load tsla/candle'
[info]You can run a standalone .gst routine file with:[/info]
[info]You can run a standalone .openbb routine file with:[/info]
E.g. '$ python terminal.py routines/example.openbb'
[info]You can run a .gst routine file with variable inputs:[/info]
[info]You can run a .openbb routine file with variable inputs:[/info]
E.g. '$ python terminal.py routines/example_with_inputs.gst --input pltr,tsla,nio'
[info]The main commands you should be aware when navigating through the terminal are:[/info][cmds]