diff options
Diffstat (limited to 'Source/WTF/wtf/GregorianDateTime.h')
| -rw-r--r-- | Source/WTF/wtf/GregorianDateTime.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WTF/wtf/GregorianDateTime.h b/Source/WTF/wtf/GregorianDateTime.h index 2b4fc352f..37300f089 100644 --- a/Source/WTF/wtf/GregorianDateTime.h +++ b/Source/WTF/wtf/GregorianDateTime.h @@ -25,7 +25,9 @@ #ifndef WTF_GregorianDateTime_h #define WTF_GregorianDateTime_h -#include <wtf/text/CString.h> +#include <string.h> +#include <time.h> +#include <wtf/Noncopyable.h> namespace WTF { @@ -73,7 +75,7 @@ public: tm ret; memset(&ret, 0, sizeof(ret)); - ret.tm_year = m_year; + ret.tm_year = m_year - 1900; ret.tm_mon = m_month; ret.tm_yday = m_yearDay; ret.tm_mday = m_monthDay; |
