sw/source/uibase/docvw/SidebarWin.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
New commits: commit fa368c4eba7406b66623374cea69d9f59db1fb18 Author: Mike Kaganski <mike.kagan...@collabora.com> Date: Wed Sep 7 02:17:04 2016 +1000 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 <c...@libreoffice.org> Reviewed-by: jan iversen <j...@documentfoundation.org> diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx index 3c83978..9d8e7d6 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits