in reply to Re^5: Timezone Conversion
in thread Timezone Conversion

Adding $ENV{TZ} = 'Etc/UTC'; at beginning of code seems to correct but noting that is resetting the timezone for the whole process not just the the one conversion. All log times etc post that change are in UTC not EDT as required.

.

Replies are listed 'Best First'.
Re^7: Timezone Conversion
by soonix (Chancellor) on Nov 17, 2015 at 11:00 UTC
    Adding $ENV{TZ} = 'Etc/UTC'; at beginning of code seems to correct …
    What about not adding, but changing the line
    local $ENV{TZ} = 'UTC';
    to
    local $ENV{TZ} = 'Etc/UTC';
    instead?