SUSE Support

Here When You Need Us

Date command give incorrect results because of day light savings time

This document (7004936) is provided subject to the disclaimer at the end of this document.


 Linux sles10 sp1 sp2 and sp3


Because of DST, the date command + 1 day would not give the correct results:  The issue is with the handling of the daylight savings change and the +1 day option. Notice the differences:

date (coreutils) 5.2.1
date -d "2009-11-01 +1 day"
Mon Nov 2 00:00:00 EST 2009

OpenSuse 11 (For comparison only):
date (GNU coreutils) 6.12
date -d "2009-11-01 +1 day"
Mon Nov 2 00:00:00 EST 2009

These give you the same time the next day, midnight.

Now look at how SLES 10 responds:
SLES 10 SP2:
date (GNU coreutils) 5.93
date -d "2009-11-01 +1 day"
Sun Nov 1 23:00:00 EST 2009

It is going 24 hours ahead, but the DST change causes it to give 11PM the same day. This problem happens with any DST change (any year), not just the example and any SLES10 patch level (SP1,SP2 and SP3)



Engineering has fixed this. The fix is attached to the bug.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7004936
  • Creation Date: 25-Nov-2009
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.