CC: | sini [...] cpan.org |
Subject: | CA::AutoSys::Status::format_time displays GMT not local time |
Date: | Thu, 15 Feb 2007 16:48:57 +1100 |
To: | bug-CA-AutoSys [...] rt.cpan.org |
From: | David.Pitt [...] nab.com.au |
Hello Sinisa,
Nice work on the CA::AutoSys module, it installed and ran very easily for
me. Noticed a disparity between CA autorep (4.5) and your example autorep
script, CA reports time in local time, you report in GMT. Fix is simple:
$ diff lib/CA/AutoSys/Status.pm.orig lib/CA/AutoSys/Status.pm
80c80
< my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) =
gmtime($time);
---
Show quoted text
> my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) =
localtime($time);
This makes the timestamps identical to CA's autorep, in our environment at
least.
Note also that the '-w' option is an undocumented option to CA autorep in
AutoSys 4.5, it is equivalent to your '-w 116' option.
Note also that you have hard-coded Sybase as the CA DB, they support others
including Oracle.
Regards,
David Pitt | Enterprise Services Technology | National Australia Bank
Limited
Phone +61 3 8641 2014 | Email david.pitt@nab.com.au | Level 26, 500 Bourke
Street, Melbourne
National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster@nab.com.au or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscriptions@nab.com.au in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference.