mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-16 02:12:24 -06:00
feat: Add improved date input
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
class LocalDateTimeJsonConverter extends JsonConverter<DateTime, String> {
|
||||
@@ -11,6 +10,6 @@ class LocalDateTimeJsonConverter extends JsonConverter<DateTime, String> {
|
||||
|
||||
@override
|
||||
String toJson(DateTime object) {
|
||||
return object.toIso8601String();
|
||||
return object.toUtc().toIso8601String();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user