MySQL is not timezone aware while calculating time.
Link to a related MySQL bug http://bugs.mysql.com/bug.php?id=68832
MariaDB [(none)]> select @@session.time_zone;
|
| @@session.time_zone |
|
| Europe/Oslo |
|
1 row in set (0.00 sec)
|
|
MariaDB [(none)]> SELECT FROM_UNIXTIME(UNIX_TIMESTAMP('2015-03-29 02:00:00'));
|
| FROM_UNIXTIME(UNIX_TIMESTAMP('2015-03-29 02:00:00')) |
|
| 2015-03-29 03:00:00 |
|
1 row in set (0.00 sec)
|
|
MariaDB [(none)]> SELECT CAST('2015-03-29 02:00:00' as DATETIME);
|
| CAST('2015-03-29 02:00:00' as DATETIME) |
|
| 2015-03-29 02:00:00 |
|
1 row in set (0.00 sec)
|
MariaDB [(none)]> SELECT CAST('2015-03-29 01:00:01' as DATETIME)+INTERVAL 1 HOUR;
|
| CAST('2015-03-29 01:00:01' as DATETIME)+INTERVAL 1 HOUR |
|
| 2015-03-29 02:00:01 |
|
1 row in set (0.00 sec)
|
|
MariaDB [(none)]> SELECT FROM_UNIXTIME(UNIX_TIMESTAMP('2015-03-29 01:00:01')+3600);
|
| FROM_UNIXTIME(UNIX_TIMESTAMP('2015-03-29 01:00:01')+3600) |
|
| 2015-03-29 03:00:01 |
|
1 row in set (0.00 sec)
|
There are no comments yet on this issue.
{"report":{"fcp":1024.2000007629395,"ttfb":227.9000005722046,"pageVisibility":"visible","entityId":50782,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5a4468fc-1670-43d6-8d18-066be8747445","navigationType":0,"readyForUser":1217.2000007629395,"redirectCount":0,"resourceLoadedEnd":1330.1000003814697,"resourceLoadedStart":236.70000076293945,"resourceTiming":[{"duration":186.79999923706055,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":236.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.5,"responseStart":0,"secureConnectionStart":0},{"duration":186.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":236.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":202,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":237.10000038146973,"connectEnd":237.10000038146973,"connectStart":237.10000038146973,"domainLookupEnd":237.10000038146973,"domainLookupStart":237.10000038146973,"fetchStart":237.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":237.10000038146973,"responseEnd":439.1000003814697,"responseStart":439.1000003814697,"secureConnectionStart":237.10000038146973},{"duration":288.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":237.30000019073486,"connectEnd":237.30000019073486,"connectStart":237.30000019073486,"domainLookupEnd":237.30000019073486,"domainLookupStart":237.30000019073486,"fetchStart":237.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":237.30000019073486,"responseEnd":525.6000003814697,"responseStart":525.6000003814697,"secureConnectionStart":237.30000019073486},{"duration":292.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":237.5,"connectEnd":237.5,"connectStart":237.5,"domainLookupEnd":237.5,"domainLookupStart":237.5,"fetchStart":237.5,"redirectEnd":0,"redirectStart":0,"requestStart":237.5,"responseEnd":529.8000001907349,"responseStart":529.8000001907349,"secureConnectionStart":237.5},{"duration":292.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":237.70000076293945,"connectEnd":237.70000076293945,"connectStart":237.70000076293945,"domainLookupEnd":237.70000076293945,"domainLookupStart":237.70000076293945,"fetchStart":237.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":237.70000076293945,"responseEnd":530.4000005722046,"responseStart":530.4000005722046,"secureConnectionStart":237.70000076293945},{"duration":371.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":238,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":238,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":609.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":293,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":238,"connectEnd":238,"connectStart":238,"domainLookupEnd":238,"domainLookupStart":238,"fetchStart":238,"redirectEnd":0,"redirectStart":0,"requestStart":238,"responseEnd":531,"responseStart":531,"secureConnectionStart":238},{"duration":293.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":238.20000076293945,"connectEnd":238.20000076293945,"connectStart":238.20000076293945,"domainLookupEnd":238.20000076293945,"domainLookupStart":238.20000076293945,"fetchStart":238.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":238.20000076293945,"responseEnd":531.7000007629395,"responseStart":531.6000003814697,"secureConnectionStart":238.20000076293945},{"duration":371,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":238.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":238.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":609.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":293.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":238.5,"connectEnd":238.5,"connectStart":238.5,"domainLookupEnd":238.5,"domainLookupStart":238.5,"fetchStart":238.5,"redirectEnd":0,"redirectStart":0,"requestStart":238.5,"responseEnd":532.3000001907349,"responseStart":532.3000001907349,"secureConnectionStart":238.5},{"duration":781.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":242.80000019073486,"connectEnd":242.80000019073486,"connectStart":242.80000019073486,"domainLookupEnd":242.80000019073486,"domainLookupStart":242.80000019073486,"fetchStart":242.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":242.80000019073486,"responseEnd":1024.5,"responseStart":1024.5,"secureConnectionStart":242.80000019073486},{"duration":797.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":242.9000005722046,"connectEnd":242.9000005722046,"connectStart":242.9000005722046,"domainLookupEnd":242.9000005722046,"domainLookupStart":242.9000005722046,"fetchStart":242.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":242.9000005722046,"responseEnd":1040,"responseStart":1040,"secureConnectionStart":242.9000005722046},{"duration":360,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":624.7000007629395,"connectEnd":624.7000007629395,"connectStart":624.7000007629395,"domainLookupEnd":624.7000007629395,"domainLookupStart":624.7000007629395,"fetchStart":624.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":624.7000007629395,"responseEnd":984.7000007629395,"responseStart":984.7000007629395,"secureConnectionStart":624.7000007629395},{"duration":279.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1015.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1015.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1295.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":242,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1038.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1038.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1280.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":241.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1039.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1039.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1281.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":234.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1040.3000001907349,"connectEnd":1040.3000001907349,"connectStart":1040.3000001907349,"domainLookupEnd":1040.3000001907349,"domainLookupStart":1040.3000001907349,"fetchStart":1040.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1040.3000001907349,"responseEnd":1274.9000005722046,"responseStart":1274.9000005722046,"secureConnectionStart":1040.3000001907349},{"duration":287.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1040.8000001907349,"connectEnd":1040.8000001907349,"connectStart":1040.8000001907349,"domainLookupEnd":1040.8000001907349,"domainLookupStart":1040.8000001907349,"fetchStart":1040.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1040.8000001907349,"responseEnd":1328.7000007629395,"responseStart":1328.7000007629395,"secureConnectionStart":1040.8000001907349},{"duration":288.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1041.3000001907349,"connectEnd":1041.3000001907349,"connectStart":1041.3000001907349,"domainLookupEnd":1041.3000001907349,"domainLookupStart":1041.3000001907349,"fetchStart":1041.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1041.3000001907349,"responseEnd":1330.1000003814697,"responseStart":1330.1000003814697,"secureConnectionStart":1041.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":51,"responseStart":228,"responseEnd":232,"domLoading":234,"domInteractive":1391,"domContentLoadedEventStart":1391,"domContentLoadedEventEnd":1438,"domComplete":2277,"loadEventStart":2277,"loadEventEnd":2278,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1317.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1338.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1339.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1339.7000007629395},{"name":"activityTabFullyLoaded","time":1453.3000001907349}],"measures":[],"correlationId":"d75d3d55339e37","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}