mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 19:22:23 +00:00
Missed some .gst refs and update timezone
This commit is contained in:
@@ -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:
|
||||
|
||||
1
openbb_terminal/timezone.gst
vendored
1
openbb_terminal/timezone.gst
vendored
@@ -1 +0,0 @@
|
||||
America/New_York
|
||||
1
openbb_terminal/timezone.openbb
vendored
Normal file
1
openbb_terminal/timezone.openbb
vendored
Normal file
@@ -0,0 +1 @@
|
||||
US/Eastern
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user