Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from Arvoreen/master
Browse files Browse the repository at this point in the history
Date mapping incorrect
  • Loading branch information
roscopeco committed Aug 11, 2013
2 parents 1799c70 + 40d9301 commit 7e6be0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
2 changes: 1 addition & 1 deletion src/com/roscopeco/ormdroid/DateTypeMapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public String encodeValue(SQLiteDatabase db, Object value) {
}

public Object decodeValue(SQLiteDatabase db, Class<?> expectedType, Cursor c, int columnIndex) {
return new Date(c.getInt(columnIndex));
return new Date(c.getLong(columnIndex));
}
}

0 comments on commit 7e6be0a

Please sign in to comment.