Skip to content

Commit

Permalink
Merge pull request #13 from 316181444/master
Browse files Browse the repository at this point in the history
time zone is gmt
  • Loading branch information
psidnell authored Oct 29, 2017
2 parents 0e1ebb3 + a3ee14f commit 131561c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.TimeZone;
import java.util.Collection;
import java.util.GregorianCalendar;
import java.util.LinkedList;
Expand Down Expand Up @@ -137,7 +138,8 @@ private Object getValue(ResultSet rs, SQLITEPropertyDescriptor desc) throws SQLE
secondsSince2001 = ((Double) rawValue).intValue();
}

Calendar cal = new GregorianCalendar();
// time zone is GMT
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
cal.set(Calendar.YEAR, TWO_THOUSAND_AND_ONE);
cal.set(Calendar.MONTH, Calendar.JANUARY);
cal.set(Calendar.DAY_OF_MONTH, 1);
Expand Down

0 comments on commit 131561c

Please sign in to comment.