diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-05-01 20:46:54 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-01 20:46:54 +0000 |
commit | 9294ffdf371fbae8c166dd5e3c63955f1d3ab18e (patch) | |
tree | c61d07d68374adf510df41aabb5189336b7eda12 /xfa/fwl/cfwl_monthcalendar.cpp | |
parent | 4bbbca4880fdff6b106bd935e6cd62f82025ec55 (diff) | |
download | pdfium-9294ffdf371fbae8c166dd5e3c63955f1d3ab18e.tar.xz |
Start at today's date in XFA Month Calendar.chromium/3417
Bug: pdfium:751
Change-Id: I125fbb0dd8ff4a382c4cec33a29c52a97e67de23
Reviewed-on: https://pdfium-review.googlesource.com/31851
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_monthcalendar.cpp')
-rw-r--r-- | xfa/fwl/cfwl_monthcalendar.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xfa/fwl/cfwl_monthcalendar.cpp b/xfa/fwl/cfwl_monthcalendar.cpp index 08ed83f4f1..af865b530b 100644 --- a/xfa/fwl/cfwl_monthcalendar.cpp +++ b/xfa/fwl/cfwl_monthcalendar.cpp @@ -552,11 +552,11 @@ void CFWL_MonthCalendar::GetCapValue() { } void CFWL_MonthCalendar::InitDate() { - // TODO(dsinclair): These should pull the real today values instead of - // pretending it's 2011-01-01. - m_iYear = 2011; - m_iMonth = 1; - m_iDay = 1; + CFX_DateTime now = CFX_DateTime::Now(); + + m_iYear = now.GetYear(); + m_iMonth = now.GetMonth(); + m_iDay = now.GetDay(); m_iCurYear = m_iYear; m_iCurMonth = m_iMonth; |