LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2012, 03:08 AM   #1
ewalter
LQ Newbie
 
Registered: Jun 2012
Location: kampala,Uganda
Distribution: backtrack
Posts: 10

Rep: Reputation: Disabled
ERROR: Date::Manip unable to determine TimeZone.


Am using centos on one of my servers but when i run logwatch "sh /etc/cron.daily/logwatch.cron" i get
ERROR: Date::Manip unable to determine TimeZone.

Execute the following command in a shell prompt:
perldoc Date::Manip
The section titled TIMEZONES describes valid TimeZones
and where they can be defined.

I've installed every little thing that has to do with Date::Manip so the problem can't be with perl's date!!
But today morning when i ran /etc/init.d/ntpd status
it returned:
ntpd dead but pid file exists
Could that be the cause of the above, please advise coz am so desperate. tnx
 
Old 06-29-2012, 02:31 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Restart ntpd with your command /etc/init.d/ntpd restart.

Check this info out for setting your timezone:

http://www.thegeekstuff.com/2010/09/...zone-in-linux/

It is controlled by the file /etc/localtime and there are some files in /usr/share/zoneinfo/ that you can copy to that location to change it.
 
Old 06-29-2012, 02:58 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by ewalter View Post
Am using centos on one of my servers but when i run logwatch "sh /etc/cron.daily/logwatch.cron" i get
ERROR: Date::Manip unable to determine TimeZone.

Execute the following command in a shell prompt:
perldoc Date::Manip
The section titled TIMEZONES describes valid TimeZones and where they can be defined.

I've installed every little thing that has to do with Date::Manip so the problem can't be with perl's date!! But today morning when i ran /etc/init.d/ntpd status it returned:
ntpd dead but pid file exists
Could that be the cause of the above, please advise coz am so desperate. tnx
Spell out your words. And the Date::Manip::TZ package addresses this, if you don't implicitly set the timezone in your Perl program:
http://search.cpan.org/~sbeck/Date-M...STEM_TIME_ZONE

You can try a few things:
  • Set the timezone at the beginning of your script like
    Code:
    TZ=PST8PDT
  • Check the contents of /etc/sysconfig/clock, and look for the TIMEZONE and DEFAULT_TIMEZONE values. Put the TIMEZONE line in the /etc/TIMEZONE file.
  • Use the Date::Manip:TZ module too
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using stat to determine last file access and comparing to current date in IF statemnt danpaluska Linux - Newbie 2 02-16-2010 11:52 AM
SOLVED: OOo v3.0 FATAL ERROR: Unable to determine user interface language stress_junkie Linux - Software 0 02-13-2009 08:47 AM
Change timezone using date davholla Linux - General 16 11-09-2005 02:53 AM
Determine date when linux was installed twantrd Linux - General 4 05-16-2005 10:00 PM
ERROR: Unable to determine the NVIDIA kernel module filename. Friedrich Slackware 18 04-10-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration