fix name of exported files (correct the time)

This reverts part of a75a27ad, where this got changed presumably by mistake.
This commit is contained in:
Luboš Luňák
2017-09-27 20:13:29 +02:00
parent bb22972eb2
commit be9c2ff64d

View File

@@ -92,7 +92,7 @@ public abstract class DatabaseUtils
throws IOException throws IOException
{ {
SimpleDateFormat dateFormat = DateFormats.getBackupDateFormat(); SimpleDateFormat dateFormat = DateFormats.getBackupDateFormat();
String date = dateFormat.format(DateUtils.getStartOfToday()); String date = dateFormat.format(DateUtils.getLocalTime());
String format = "%s/Loop Habits Backup %s.db"; String format = "%s/Loop Habits Backup %s.db";
String filename = String.format(format, dir.getAbsolutePath(), date); String filename = String.format(format, dir.getAbsolutePath(), date);