Timestamp.valueOf() adds one hour to the timestamp for DST

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 8u281, 17
    • Component/s: other-libs

      Customer report that running the following code gives incorrect result. i.e One hour is added to the timestamp while in DST.

      java.sql.Timestamp ts1 = Timestamp.valueOf("2019-03-10 02:46:18");
      //returns 2019-03-10 03:46:18
      //expected 2019-03-10 02:46:18

      Environment timezone is localtime.

            Assignee:
            Kiran Sidhartha Ravikumar (Inactive)
            Reporter:
            Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: