Skip to content

Commit

Permalink
Merge pull request #25 from enm10k/feature/fix-#23
Browse files Browse the repository at this point in the history
Fix #23
  • Loading branch information
enm10k authored Jun 28, 2024
2 parents 1227658 + 45728bd commit d994a5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ app.*.map.json

_nocodb

integration_test/.env
.env
2 changes: 1 addition & 1 deletion lib/features/core/components/editors/datetime.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class DateTimeEditor extends HookConsumerWidget {

await pickDateTime(context, initialDateTime,
(pickedDateTime) async {
final v = NocoDate.fromDateTime(pickedDateTime);
final v = NocoDateTime(pickedDateTime);
await onUpdate({column.title: v.toApiValue()});
controller.text = v.toString();
});
Expand Down
2 changes: 1 addition & 1 deletion lib/nocodb_sdk/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class NocoDateTime {

String toApiValue() => dt.toUtc().toString();

static final DateFormat _format = DateFormat('yyyy-MM-dd hh:mm');
static final DateFormat _format = DateFormat('yyyy-MM-dd HH:mm');
@override
String toString() => _format.format(dt.toLocal());
}
Expand Down

0 comments on commit d994a5b

Please sign in to comment.