summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2016-09-07 02:17:04 +1000
committerjan iversen <jani@documentfoundation.org>2016-10-13 08:09:00 +0000
commitfa368c4eba7406b66623374cea69d9f59db1fb18 (patch)
tree7ae3a632aab9724b21e4c2d696e2b005ea8209ec
parent62456ee20622eef8a3f5894946b844d1a9cc699e (diff)
tdf#91299: always use normal dates in comments (no "today"/"yesterday")
because if printed, these relative dates don't allow to know the real dates. Change-Id: I791214d727eee460dafeec2b7103f625ec08655d Reviewed-on: https://gerrit.libreoffice.org/28698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 3c839781cb84..9d8e7d640ebd 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -677,17 +677,8 @@ void SwSidebarWin::CheckMetaText()
mpMetadataAuthor->SetText(sMeta);
}
- Date aSysDate( Date::SYSTEM );
Date aDate = GetDate();
- if (aDate==aSysDate)
- {
- sMeta = SW_RESSTR(STR_POSTIT_TODAY);
- }
- else if (aDate == Date(aSysDate-1))
- {
- sMeta = SW_RESSTR(STR_POSTIT_YESTERDAY);
- }
- else if (aDate.IsValidAndGregorian() )
+ if (aDate.IsValidAndGregorian() )
{
sMeta = rLocalData.getDate(aDate);
}