We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb023fa commit 74d948bCopy full SHA for 74d948b
src/main/java/com/odoojava/api/Row.java
@@ -130,6 +130,7 @@ public Object get(String fieldName){
130
131
if (value instanceof String && fieldType == Field.FieldType.DATE){
132
DateFormat dfm = new SimpleDateFormat("yyyy-MM-dd");
133
+ dfm.setTimeZone(TimeZone.getTimeZone("UTC"));
134
try{
135
return dfm.parse(value.toString());
136
}
@@ -140,6 +141,7 @@ public Object get(String fieldName){
140
141
142
if (value instanceof String && fieldType == Field.FieldType.DATETIME){
143
DateFormat dfm = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
144
145
146
147
0 commit comments