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

Commit

Permalink
Fix date mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Martinescu committed Jul 10, 2013
1 parent 1799c70 commit 9f0e4cd
Showing 1 changed file with 1 addition and 1 deletion.
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 9f0e4cd

Please sign in to comment.