[MDEV-13868] cannot insert 1288481126 in a timestamp column in Europe/Moscow Created: 2017-09-22  Updated: 2017-09-22  Resolved: 2017-09-22

Status: Closed
Project: MariaDB Server
Component/s: Time zones
Affects Version/s: 10.2
Fix Version/s: 10.2.9

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: regression


 Description   

This used to work in 10.0 and 10.1:

set time_zone='Europe/Moscow';
create table t1 (a timestamp);
set timestamp=1288481126;
insert t1 values (null);
select a, unix_timestamp(a) from t1;

but in 10.2 it returns 1288477526 (one hour earlier).

Because both 1288481126 and 1288477526 are written as 2010-10-31 02:25:26 in time zone Europe/Moscow, and intermediate timestamp→datetime→timestamp conversion loses information.


Generated at Thu Feb 08 08:09:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.