fix python binding time_point conversion

This commit is contained in:
arvidn 2016-12-31 12:33:50 -05:00
parent 23a7e8d40a
commit ea6e29d23f
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ struct time_point_to_python
std::tm* date = std::gmtime(&tm);
object result = datetime_datetime(
(int)1900 + date->tm_year
, (int)date->tm_mon
// tm use 0-11 and we need 1-12
, (int)date->tm_mon + 1
, (int)date->tm_mday
, date->tm_hour
, date->tm_min