Skip to content

Commit

Permalink
use UTC as default timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiquanJiang-ms committed Jul 10, 2024
1 parent b9c2e05 commit 50134f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions src/acat/azext_acat/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from azure.cli.core.aaz._client import AAZMgmtClient
from .utils import (
GetClosestFullHour,
GetLocalTimeZone,
ParseSubsFromResources,
saveArrayAsCsv,
)
Expand Down Expand Up @@ -137,7 +136,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
arg_group="Properties",
help="""Report collection trigger time\'s time zone, the available list can be obtained by executing
"Get-TimeZone -ListAvailable" in PowerShell. An example of valid timezone id is "Pacific Standard Time".""",
default=GetLocalTimeZone(),
default="UTC",
)
args_schema.trigger_time._required = False
args_schema.trigger_time._registered = False
Expand Down
5 changes: 0 additions & 5 deletions src/acat/azext_acat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ def ParseSubsFromResources(resourceList):
return list(subs)


def GetLocalTimeZone():
"""Get local time zone"""
return str(datetime.datetime.now(datetime.timezone.utc).astimezone().tzinfo)


def GetClosestFullHour():
"""Get closest full hour"""
now = datetime.datetime.now()
Expand Down

0 comments on commit 50134f2

Please sign in to comment.