We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your Feature Request related to a problem? Please describe.
Trying to parse ebay item dates, e.g. Aug-3 12:23, but it considers them UTC 0
Aug-3 12:23
Describe the solution you'd like When there is no timezone clearly specified - use local timezone
Describe alternatives you've considered I have tried:
print(datetime.datetime.now(datetime.timezone(datetime.timedelta(0))).astimezone().tzinfo) RTZ 2 (зима)
print(datetime.datetime.now(datetime.timezone(datetime.timedelta(0))).astimezone().tzinfo)
maya.parse(item_date, print(datetime.datetime.now(datetime.timezone(datetime.timedelta(0))).astimezone().tzinfo), true).datetime().isoformat()
but RTZ is not supported
maya.parse(item_date, "UTC"+time.strftime("%z"), true).datetime().isoformat() and maya.parse(item_date, "UTC"+time.strftime("%z").replace("0",""), true).datetime().isoformat()
maya.parse(item_date, "UTC"+time.strftime("%z"), true).datetime().isoformat()
maya.parse(item_date, "UTC"+time.strftime("%z").replace("0",""), true).datetime().isoformat()
but both UTC+0300 and UTC+3 formats also aren't supported
UTC+0300
UTC+3
Additional context maybe add "Local" timezone value to use at least? but I still think it should use the local one when there is none specified
from tzlocal import get_localzone maya.parse(item_date, get_localzone().key) maya.when(item_date, get_localzone().key)
worked for me in the end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your Feature Request related to a problem? Please describe.
Trying to parse ebay item dates, e.g.
Aug-3 12:23
, but it considers them UTC 0Describe the solution you'd like
When there is no timezone clearly specified - use local timezone
Describe alternatives you've considered
I have tried:
print(datetime.datetime.now(datetime.timezone(datetime.timedelta(0))).astimezone().tzinfo)
RTZ 2 (зима)
maya.parse(item_date, print(datetime.datetime.now(datetime.timezone(datetime.timedelta(0))).astimezone().tzinfo), true).datetime().isoformat()
but RTZ is not supported
maya.parse(item_date, "UTC"+time.strftime("%z"), true).datetime().isoformat()
and
maya.parse(item_date, "UTC"+time.strftime("%z").replace("0",""), true).datetime().isoformat()
but both
UTC+0300
andUTC+3
formats also aren't supportedAdditional context
maybe add "Local" timezone value to use at least? but I still think it should use the local one when there is none specified
worked for me in the end
The text was updated successfully, but these errors were encountered: