summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_monthcalendar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/cfwl_monthcalendar.cpp')
-rw-r--r--xfa/fwl/cfwl_monthcalendar.cpp10
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;