cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [2/9] cayenne git commit: Changed defaultTime zone to systemDefault.
Date Fri, 10 Aug 2018 14:33:00 GMT
Changed defaultTime zone to systemDefault.


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/c9093b7e
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/c9093b7e
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/c9093b7e

Branch: refs/heads/master
Commit: c9093b7eff1cd5f43c819eab2f746b49b6721fc6
Parents: 0972769
Author: kkomyak <const1993@gmail.com>
Authored: Wed Aug 8 11:03:17 2018 +0300
Committer: kkomyak <const1993@gmail.com>
Committed: Wed Aug 8 11:03:17 2018 +0300

----------------------------------------------------------------------
 .../cayenne/crypto/transformer/value/LocalDateTimeConverter.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/c9093b7e/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/LocalDateTimeConverter.java
----------------------------------------------------------------------
diff --git a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/LocalDateTimeConverter.java
b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/LocalDateTimeConverter.java
index 9e98632..6476e60 100644
--- a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/LocalDateTimeConverter.java
+++ b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/LocalDateTimeConverter.java
@@ -4,7 +4,6 @@ import java.time.Instant;
 import java.time.LocalDateTime;
 import java.time.ZoneId;
 import java.util.Objects;
-import java.util.TimeZone;
 
 /**
  * @since 4.1.M3
@@ -23,7 +22,7 @@ public class LocalDateTimeConverter implements BytesConverter<LocalDateTime>
{
     public LocalDateTime fromBytes(byte[] bytes) {
 
         return LocalDateTime.ofInstant(Instant.ofEpochMilli(longConverter.fromBytes(bytes)),
-                        TimeZone.getDefault().toZoneId());
+                ZoneId.systemDefault());
     }
 
 


Mime
View raw message