diff options
Diffstat (limited to 'sw/source/ui/docvw/SidebarWin.cxx')
-rw-r--r-- | sw/source/ui/docvw/SidebarWin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx index 311e5bdd1dab..da0f8884c9cd 100644 --- a/sw/source/ui/docvw/SidebarWin.cxx +++ b/sw/source/ui/docvw/SidebarWin.cxx @@ -406,12 +406,13 @@ void SwSidebarWin::CheckMetaText() mpMetadataAuthor->SetText(sMeta); } + Date aSysDate( Date::SYSTEM ); Date aDate = GetDate(); - if (aDate==Date()) + if (aDate==aSysDate) { sMeta = String(SW_RES(STR_POSTIT_TODAY)); } - else if (aDate == Date(Date()-1)) + else if (aDate == Date(aSysDate-1)) { sMeta = String(SW_RES(STR_POSTIT_YESTERDAY)); } |