mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
HSQLDBRepository.toOffsetDateTime now returns null if passed null
This commit is contained in:
@@ -508,7 +508,10 @@ public class HSQLDBRepository implements Repository {
|
||||
}
|
||||
|
||||
/** Converts milliseconds from epoch to OffsetDateTime needed for TIMESTAMP WITH TIME ZONE columns. */
|
||||
/* package */ static OffsetDateTime toOffsetDateTime(long timestamp) {
|
||||
/* package */ static OffsetDateTime toOffsetDateTime(Long timestamp) {
|
||||
if (timestamp == null)
|
||||
return null;
|
||||
|
||||
return OffsetDateTime.ofInstant(Instant.ofEpochMilli(timestamp), ZoneOffset.UTC);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user