Make the day start at 3am instead of midnight

Closes #50
This commit is contained in:
2017-07-25 20:01:29 -04:00
parent 4126f01ef1
commit a75a27ad42
7 changed files with 56 additions and 29 deletions

View File

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