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 ce3caa9 commit b8585e6Copy full SHA for b8585e6
generator/lib/src/code_chunks.dart
@@ -235,9 +235,9 @@ class CodeChunks {
235
return '$valueVar == null ? null : DateTime.fromMicrosecondsSinceEpoch(($valueVar / 1000).round())';
236
}
237
} else {
238
- if (p.type == OBXPropertyType.DateNano) {
+ if (p.type == OBXPropertyType.Date) {
239
return "DateTime.fromMillisecondsSinceEpoch(${readFieldNonNull('0')})";
240
- } else {
+ } else if (p.type == OBXPropertyType.DateNano) {
241
return "DateTime.fromMicrosecondsSinceEpoch((${readFieldNonNull('0')} / 1000).round())";
242
243
0 commit comments