mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
Write the date time in iso8601 + timezone
This is not perfect as when parsing the datetime, we're ignoring the timezone.
This commit is contained in:
@ -12,6 +12,7 @@ import 'package:journal/note.dart';
|
||||
import 'package:journal/storage/notes_repository.dart';
|
||||
import 'package:journal/storage/git_storage.dart';
|
||||
import 'package:journal/storage/git.dart';
|
||||
import 'package:journal/datetime_utils.dart';
|
||||
|
||||
Future<Directory> getNotesDir() async {
|
||||
var appDir = await getGitBaseDirectory();
|
||||
@ -49,7 +50,7 @@ class StateContainerState extends State<StateContainer> {
|
||||
getDirectory: getNotesDir,
|
||||
dirName: "journal",
|
||||
gitCloneUrl: "root@bcn.vhanda.in:git/test",
|
||||
fileNameGenerator: (Note n) => n.created.toIso8601String(),
|
||||
fileNameGenerator: (Note n) => toIso8601WithTimezone(n.created),
|
||||
);
|
||||
|
||||
StateContainerState(bool onBoardingCompleted) {
|
||||
|
Reference in New Issue
Block a user