in reply to Baffled by DateTime

What error do you get? Also, are you sure that EST5EDT makes sense as timezone? Shouldn't it be EST and DateTime figures out that it is currently DST there?

Replies are listed 'Best First'.
Re^2: Baffled by DateTime
by ikegami (Patriarch) on Mar 31, 2023 at 14:28 UTC

    It is accepted (once you fix the parameter name), but that doesn't mean it makes sense. It's not a well defined term. If you're lucky, you want the US time zone and it will be an alias for America/New_York. So why not avoid chance and use America/New_York if that's what you want. Or did you want America/Toronto...

      but that doesn't mean it makes sense

      I am rather glad that I live close to the Greenwich Meridian - I least I (almost always) only have Daylight Saving Time to worry about!