Skip to content

Commit e8eb5c9

Browse files
committed
Improve backup filename format with readable date and time
1 parent 9d7846f commit e8eb5c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeSnip/Views/SettingsView/SettingsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private async Task Backup()
235235
if (!Directory.Exists(backupFolder))
236236
Directory.CreateDirectory(backupFolder);
237237

238-
string backupFileName = $"snippets-{DateTime.Now:yyyyMMddHHmmss}.sqlite";
238+
string backupFileName = $"snippets-{DateTime.Now:yyyy-MM-dd_HH-mm-ss}.sqlite";
239239
string backupFilePath = Path.Combine(backupFolder, backupFileName);
240240

241241
File.Copy(dbFilePath, backupFilePath);

0 commit comments

Comments
 (0)