mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-21 11:13:54 +03:00
In the date/time functions, a timezone suffix of "+00:00" should work
the same as "Z". [forum:/forumpost/2025-09-17T10:12:14z|Forum post 2025-09-17T10:12:14z]. FossilOrigin-Name: 3b7a5babf0843c4b3ce93d26f1447218585ce645ec3acd942ac649204e16675a
This commit is contained in:
@@ -325,9 +325,29 @@ utc_to_local 6.24 {3000-10-30 11:30:00} {3000-10-30 12:00:00}
|
||||
# timezone extension, then the time will already be UTC and subsequent
|
||||
# 'utc' modifiers are no-ops.
|
||||
#
|
||||
do_execsql_test date-6.25 {
|
||||
# Forum post 2025-09-17T10:12:14 - The "+00:00" suffix should work like "Z"
|
||||
#
|
||||
do_execsql_test date-6.25.1 {
|
||||
SELECT datetime('2000-10-29 12:00Z','utc','utc');
|
||||
} {{2000-10-29 12:00:00}}
|
||||
do_execsql_test date-6.25.2 {
|
||||
SELECT datetime('2000-10-29 12:00 +00:00','utc','utc');
|
||||
} {{2000-10-29 12:00:00}}
|
||||
do_execsql_test date-6.25.3 {
|
||||
SELECT datetime('2000-10-29 12:00+00:00','utc','utc');
|
||||
} {{2000-10-29 12:00:00}}
|
||||
do_execsql_test date-6.25.4 {
|
||||
SELECT datetime('2000-10-29 12:00:00+00:00','utc','utc');
|
||||
} {{2000-10-29 12:00:00}}
|
||||
do_execsql_test date-6.25.5 {
|
||||
SELECT datetime('2000-10-29 12:00 -00:00','utc','utc');
|
||||
} {{2000-10-29 12:00:00}}
|
||||
do_execsql_test date-6.25.6 {
|
||||
SELECT datetime('2000-10-29 12:00-00:00','utc','utc');
|
||||
} {{2000-10-29 12:00:00}}
|
||||
do_execsql_test date-6.25.7 {
|
||||
SELECT datetime('2000-10-29 12:00:00-00:00','utc','utc');
|
||||
} {{2000-10-29 12:00:00}}
|
||||
do_execsql_test date-6.26 {
|
||||
SELECT datetime('2000-10-29 12:00:00+05:00');
|
||||
} {{2000-10-29 07:00:00}}
|
||||
|
Reference in New Issue
Block a user