You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Periods in Budgets are show with incorrect dates #179
@deserialize.register("date[ms-format]")
def deserialize_date_ms(data_type, data, model_finder):
"""Deserializes data into a python date
Expected input value in format /Date(timestamp_in_milliseconds)/
Raise ValueError if the input is well formatted but not a valid date.
Return None if the input isn't well formatted.
:param data_type: class literal for deserialized object, or string of class name
:param data: data to be parsed
:param model_finder: ModelFinder instance to find class for data_type class literal
:return: deserialized datetime.date
"""
ms_datetime = deserialize_datetime_ms(data_type, data, model_finder)
# shift datetime to utc timezone to make sure utc date used
return ms_datetime.astimezone(tz=tz.UTC).date()
Activity
github-actions commentedon Apr 4, 2025
PETOSS-716
github-actions commentedon Apr 4, 2025
Thanks for raising an issue, a ticket has been created to track your request