From the doc to Date::Manip:

VERSION 5 AND VERSION 6

Date::Manip version 6.00 was a complete rewrite of the module (for more information, please refer to the Date::Manip::Changes5to6 document).

The document linked to in that Readme contains all you need to know about the changes to TimeZone handling in Date::Manip, including at http://search.cpan.org/~sbeck/Date-Manip-6.58/lib/Date/Manip/Changes5to6.pod#TIME_ZONE_SUPPORT.

Personally I use DateTime for all date ... er, manipulation. (Note that you should let it handle Daylight Savings Time automatically for you, i.e. don't specify CST but rather "America/Chicago" or similar.)

$ perl -MDateTime -E ' my $dt = DateTime->now; say join " ", $dt, $dt->time_zone_short_name; $dt->set_time_zone("America/Chicago"); say join " ", $dt, $dt->time_zone_short_name; '
Output:
2017-05-01T16:53:29 UTC 2017-05-01T11:53:29 CDT

Hope this helps!

Update: added DT example


The way forward always starts with a minimal test.

In reply to Re: The funtion - Date_ConvTZ is not working correctly when converting from EST to CST by 1nickt
in thread The funtion - Date_ConvTZ is not working correctly when converting from EST to CST by mangrove

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.