Unable to find records by LocalDate on dates with clock changes occurring at midnight #1792
Labels
theme: date-time
Issues related to handling of date, time and timezone information
type: enhancement
A general enhancement
When using the
java.time.LocalDate
type as a parameter for querying (which is converted tojava.sql.Timestamp
during the execution), some databases return an empty result in certain cases. For instance, this occurs with dates where a clock change happens at midnight.Code snippet to reproduce (Daylight Saving Time began in Egypt on April 26, 2024):
The text was updated successfully, but these errors were encountered: