use Date::Manip;
my $jobStartdate = "2024-3-20 15:46:00";
my $jobStartD = ParseDate("$jobStartdate");
my $jobStartEpoch = UnixDate($jobStartD,"%s");
When running the above code on 2 different machine, getting 2 different values of $jobStartEpoch. Why is it so? How can I correct the setting on the machines so that the values are same?
The output depends on the time zone setting.
I just added the following lines to the script: