Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-25279

Time operations do not consider daylight savings

    XMLWordPrintable

Details

    Description

      NOW()+INTERVAL 1800 SECOND produces invalid date.
      Having a table with a column
      `valid` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP

      and an insert statement like this
      REPLACE INTO tblCaptcha SET `valid`=NOW()+INTERVAL 1800 SECOND

      produces the following error at 2021-03-28, 01:30:08
      Incorrect datetime value: '2021-03-28 02:00:08' for column `tblCaptcha`.`valid` at row 1

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              mokraemer Marc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.