the unofficial Zulu format is not treated as Zulu if the timezone is present... #550
Replies: 4 comments 2 replies
-
First: Every feedback is welcome!! 🤗 Second: I don't get it, unfortunately. Could you maybe describe it in a more precise way - like what you want to do - while not mixing up multiple things? "The scenario I am thinking of is calendar entries are maintained in UTC, and a local-ish timezone is used to convert that UTC to the proper timezone." It feels like what you are describing is more about the visualization of a time, right? This would mean that you want to define a time without any time zone, which also never gets converted on a UI level and gets converted to the user's time zone when saving - so it is still the same in his calendar. Basically that 8am is always 8am - no matter if the user is looking at the date button or saving the event. Correct? |
Beta Was this translation helpful? Give feedback.
-
First my apologies for the delay responding, I've been absolutely slammed. It is/isn't a display issue, again dropping the whole date-button thing from my previous comments...it's a question of how an event is displayed in their calendar. The vast majority of my experience is working with iCal format, so I can't say I'm an expert at Outlook or some of the others. Using the following jsfiddle, if I create an add-to-calendar button with the calendar entry entered in UTC, the .ics file that is created has the event in UTC, seems great... and it displays as: Whereas the same event entered in UTC is: Notice it shows up in the same place in the calendar, but the entry itself actually says 6:15pm UTC. That's confusing to users. I had the idea of specifying the event in UTC, so it always starts at the right time, but I'd like to make use of the current browser's timezone when generating the ICS file to make things a bit more user-friendly. Please take a look at the fiddle, I put up those examples, and then went crazy with the date button as well, despite the date button being a separate issue, just because it displays the examples easier than if you look at the ICS files with a text editor or load them into a Calendar program. |
Beta Was this translation helpful? Give feedback.
-
Forgot to mention that this went live with version 2.6 🥳. Called it |
Beta Was this translation helpful? Give feedback.
-
Just tested, works great, thank you!!! |
Beta Was this translation helpful? Give feedback.
-
I just want to be clear, this isn't a bug report per-se, more an observation.
You describe an unofficial date time format, "YYYY-MM-DDTHH:mmZ" and I note in particular that the "Z" is part of the format. If a timezone attribute is present, the timezone overrides Zulu instead of Zulu overriding the timezone. I was hoping I could feed atcb an event in UTC, but have ATCB convert it to the optimal format for the user/event.
The scenario I am thinking of is calendar entries are maintained in UTC, and a local-ish timezone is used to convert that UTC to the proper timezone.
I know I keep harping on timezones, and if I'm being a pain in the a--, just let me know and I'll stop with it and just hack my own code, I'm just in love with yours, you did a great job.
Why is this even interesting? If your ICS timezone matches (e.g. America/Los_Angeles) then apps like iCal and Fantastical will simply display the time cleanly. If your ICS entry timezone doesn't match, then they tend to display the event in local time and again in the time of the originating event's timezone.
I think it fundamentally comes down to the possibility that there are two types of event datetimes we want to deal with, and atcb only thinks about one. The first is the fixed time an event occurs (i.e. 2001-12-25T15:30Z is UTC) so we ensure the event starts at the right time for the all users no matter where they are, and one that is the user friendly time (e.g. 2012-12-25 7:30am America/Los_Angeles (assuming -8 for standard time at the start of the time)) that would go in an .ics file (or, for that matter, a date format atcb button).
Beta Was this translation helpful? Give feedback.
All reactions