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
flight_schedule_date = arrow.now("America/New_York")
flight_landing_date = flight_schedule_date.shift(hours=28).to('+05:30')
print(f'flight scheduled departure is {flight_schedule_date.format("DD,MMM HH:mm A ZZZ")} and expected arrival at destination is {flight_landing_date.format("DD,MMM HH:mm A ZZZ")}')
Output
flight scheduled departure is 22,May 10:40 AM EDT and expected arrival at destination is 24,May 00:10 AM which is missing "IST" at end
But when I add ZZ, I get correct tz expression
flight scheduled departure is 22,May 10:39 AM EDT and expected arrival at destination is 24,May 00:09 AM +05:30
System Info
🖥 OS name and version: macOS 10.15.7
🐍 Python version: 3.8.2
🏹 Arrow version: 1.2.2
The text was updated successfully, but these errors were encountered:
In order for ZZZ to be used, the timezone expression must be the time zone name, and not the numeric values("+05:30") as they are ambiguous and can match back to multiple named time zones.
Example:
>>> flight_schedule_date = arrow.now("America/New_York")
>>> flight_landing_date = flight_schedule_date.shift(hours=28).to('Asia/Kolkata')
>>> flight_landing_date.format("DD,MMM HH:mm A ZZZ")
'23,Jun 10:05 AM IST'
Date format missing timezone string
Issue Description
Output
flight scheduled departure is 22,May 10:40 AM EDT and expected arrival at destination is 24,May 00:10 AM
which is missing "IST" at end
But when I add ZZ, I get correct tz expression
flight scheduled departure is 22,May 10:39 AM EDT and expected arrival at destination is 24,May 00:09 AM +05:30
System Info
The text was updated successfully, but these errors were encountered: