Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-654

DateUtils.truncate method is buggy when dealing with DST switching hours

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.4
    • None
    • lang.time.*
    • None
    • Operating System: Linux Red Hat

    Description

      DateUtils.trucate() does not work properly with daylight saving time.
      e.g.:

      Date: 2010-10-10 05:16:14.0

      DateUtils.truncate(date, Calendar.DATE) : Sun Oct 10 01:00:00 CLST 2010

      Instead of showing 10/10/2010, it shows 10/10/2010 01:00:00

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maximocapo Maxi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: