You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by kw...@apache.org on 2007/09/11 15:28:46 UTC

svn commit: r574594 - /openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/UUIDGenerator.java

Author: kwsutter
Date: Tue Sep 11 06:28:45 2007
New Revision: 574594

URL: http://svn.apache.org/viewvc?rev=574594&view=rev
Log:
OPENJPA-361.  Committing Albert's patch for the incorrect GREG_OFFSET (Gregorian Offset) for the 1.0.x branch.

Modified:
    openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/UUIDGenerator.java

Modified: openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/UUIDGenerator.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/UUIDGenerator.java?rev=574594&r1=574593&r2=574594&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/UUIDGenerator.java (original)
+++ openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/UUIDGenerator.java Tue Sep 11 06:28:45 2007
@@ -61,7 +61,7 @@
 
     // offset to move from 1/1/1970, which is 0-time for Java, to gregorian
     // 0-time 10/15/1582, and multiplier to go from 100nsec to msec units
-    private static final long GREG_OFFSET = 0x01b21dd213814000L;
+    private static final long GREG_OFFSET = 0xB1D069B5400L;
     private static final long MILLI_MULT = 10000L;
 
     // type of UUID -- time based