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

Commit c4f27fe

Browse files
authored
Merge pull request #51 from LiubeibeiLiu/patch-1
fix: 删除3小时前的旧数据错误
2 parents 07d7051 + 1e1749b commit c4f27fe

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)