LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Showing "Invalid Time" error for a particular time in SuSE Linux (https://www.linuxquestions.org/questions/linux-newbie-8/showing-invalid-time-error-for-a-particular-time-in-suse-linux-886183/)

satya123 06-14-2011 01:36 AM

Showing "Invalid Time" error for a particular time in SuSE Linux
 
Hi all,

I was working with timezones when I came across a very strange error. Date command showed Invalid date/time when I set the date/time to 27 Mar 2011, 02:00:00.
On further analysis, I observed that the time was jumping to 03:00:00 after 01:59:59 when the date is 27th Mar, 2011.

Could anyone tell me what might have been the reason for this?

Thanks in advance

ssrameez 06-14-2011 01:42 AM

what is the command you used to set the time.

do you have any screenshot of the error message you got.

Is the server configured to sync with any network time server.

satya123 06-14-2011 01:51 AM

I used the command date -s "03/27/2011 02:01:01".
The error message displayed: /bin/date: invalid date `Mar 27 02:01:01'
I am not getting a problem like this with any other date

satya123 06-15-2011 05:33 AM

I found out the problem.

The system in which I was trying was set according to Europe Time Zone. Since March 27th, 2011 02:00:00 is the start of Daylight Saving for them, I was not able to set the time.

Thanks for all those who tried to solve this :)


All times are GMT -5. The time now is 02:46 PM.