Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit 1e1749b

Browse files
authored
fix: 删除3小时前的旧数据错误
修正ProgramData 就数据无法删除问题
1 parent 07d7051 commit 1e1749b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StickyNotes/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected override async void OnStartup(StartupEventArgs e)
6262
// 初始化数据库
6363
DBInit.InitDB();
6464
// 删除3小时前的旧数据
65-
new ProgramDataService().DeleteByDate(DateTime.Now.AddHours(3));
65+
new ProgramDataService().DeleteByDate(DateTime.Now.AddHours(-3));
6666
var systemtray = SystemTray.Instance;
6767
var programData = await DataHelper.RestoreDataAsync();
6868
if (programData == null)

0 commit comments

Comments
 (0)