Merge pull request #337 from llunak/export_name

fix name of exported files (correct the time)
This commit is contained in:
2017-09-27 20:32:26 -05:00
committed by GitHub

View File

@@ -92,7 +92,7 @@ public abstract class DatabaseUtils
throws IOException
{
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 filename = String.format(format, dir.getAbsolutePath(), date);