updated on Fri Jan 6 00:09:29 UTC 2012
[aur-mirror.git] / htinc / std_time.patch
blobb9a87b21e59c2ce40388462d88d330e1126c7f2c
1 diff src/main.cpp src/main.cpp
2 index 4dba74b..2f657d8 100644
3 --- src/main.cpp
4 +++ src/main.cpp
5 @@ -238,8 +238,8 @@ struct structures::ret analysefile(const std::string &dateiname,
8 // generate current date in the form YYYY-MM-DD
9 - std::time_t today_time = std::time(NULL); // today as calendar time
10 - struct std::tm *today = std::gmtime(&today_time); // today in GMT
11 + time_t today_time = time(NULL); // today as calendar time
12 + struct tm *today = gmtime(&today_time); // today in GMT
13 // year
14 // CONTINUE
15 // (1900+today.tm_year)