-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Labels
theme: date-timeIssues related to handling of date, time and timezone informationIssues related to handling of date, time and timezone informationtype: enhancementA general enhancementA general enhancement
Description
For an Instant defined as:
LocalDate.of(2021, 1, 1).atStartOfDay(ZoneOffset.UTC).toInstant()
when using Spring Data JDBC repository save method I'd expect the end result in MSSQL database column of type datetime2 to be of value: 2021-01-01 00:00:00.0000000 but it contains value 2021-01-01 01:00:00.0000000 suggesting that Spring Data JDBC uses my machine timezone when converting Instant.
Is this behavior documented anywhere and can it be configured somehow? I'd like my application to always use UTC unless a type with explicit timezone and/or offset is used.
Metadata
Metadata
Assignees
Labels
theme: date-timeIssues related to handling of date, time and timezone informationIssues related to handling of date, time and timezone informationtype: enhancementA general enhancementA general enhancement