Romain Derie
f02cd2977e
[FIX] website: use user timezone when handling date in page property
...
Before this commit:
1. The date would be displayed as UTC regardless of the user timezone.
2. The date would be sent to the backend in the browser timezone
Now we correctly take the user timezone into consideration when handling date.
Step to reproduce:
- Install a second language where time format is: %H.%M.%S or %H,%M,%S
(eg: Finnish, Bulgarian, Albanian )
- Set it as website default's language
- Open page properties dialog on any page
- The date looks correctly displayed but it is in fact the UTC hour and not
the user timezone date. (eg: 2 hours missing in Albanian case, it would
show '2018-Pri-05 02.11.02.' instead of '2018-Pri-05 04.11.02.')
- If you save, it will crash since it will send the wrong date format to the
backend that is expecting 'YYYY-MM-DD HH:MM:SS' format.
Closes #23500 , closes #23566
2018-03-12 12:06:55 +01:00
..
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-06 09:33:49 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-04 04:19:33 +01:00
2018-03-06 09:33:49 +01:00
2018-03-06 09:33:49 +01:00
2018-03-02 16:24:13 +01:00
2018-03-02 16:24:13 +01:00
2018-03-02 16:24:13 +01:00
2018-03-04 04:19:33 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-02-25 04:54:25 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-02-01 14:13:32 +01:00
2018-02-14 13:43:39 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-23 15:23:07 +01:00
2018-03-07 14:50:02 +01:00
2018-03-02 16:24:13 +01:00
2018-02-28 19:01:35 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-03-09 16:26:31 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-01-01 02:40:01 +01:00
2018-03-01 18:02:30 +01:00
2018-01-17 16:26:31 +01:00
2018-01-12 18:15:23 +01:00
2018-02-12 13:11:09 +01:00
2018-01-18 16:09:56 +01:00
2018-03-02 11:22:13 +01:00
2018-03-02 16:24:13 +01:00
2018-01-03 15:58:58 +01:00
2018-01-02 16:54:38 +01:00
2018-03-02 16:24:13 +01:00
2018-02-28 09:46:25 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-05 08:42:11 +01:00
2018-03-05 08:42:11 +01:00
2018-03-05 08:42:11 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-02 16:24:13 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-04 04:19:33 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-04 04:19:33 +01:00
2018-03-04 04:19:33 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-08 15:46:20 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-08 18:16:55 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-02-25 04:54:25 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-12 12:06:55 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-06 09:33:49 +01:00
2018-03-12 12:06:55 +01:00
2018-03-11 04:19:01 +01:00
2018-03-12 12:03:13 +01:00
2018-03-11 04:19:01 +01:00
2018-02-12 09:16:17 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-04 04:19:33 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-02 16:24:13 +01:00
2018-03-02 16:24:13 +01:00
2018-03-11 04:19:01 +01:00
2018-02-25 04:54:25 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00
2018-03-11 04:19:01 +01:00