AppFlowy/frontend/appflowy_flutter/lib/util/int64_extension.dart
Mathias Mogensen baa7c8d826
feat: reminder on date (#4288)
* feat: support reminder on date

* feat: support reminder on date in database

* fix: include time static

* fix: do not force unwrap

* chore: clean flutter code

* test: add test for reminder in database

* fix: interpret reminder option

* feat: date and reminder on mobile

* feat: improve notification actions and support open row

* feat: support dates in document

* fix: minor changes + review

* feat: support reminder on mobile in document

* feat: support open row on database reminder mobile

* test: add more tests

* fix: first part of review

* fix: open row responsibility

* fix: abstract application logic from presentation layer

* fix: update reminder on date cell update

* test: fix failing test

* fix: show correct selected day after end date toggled
2024-01-24 15:15:57 +01:00

6 lines
156 B
Dart

import 'package:fixnum/fixnum.dart';
extension DateConversion on Int64 {
DateTime toDateTime() => DateTime.fromMillisecondsSinceEpoch(toInt() * 1000);
}