2008-05-18 02:02:03 +02:00
|
|
|
--- sources/CPlayer.cpp.orig 2008-05-17 02:59:23.000000000 +0400
|
|
|
|
+++ sources/CPlayer.cpp 2008-05-17 03:01:31.000000000 +0400
|
|
|
|
@@ -204,7 +204,8 @@
|
2013-06-18 13:46:51 +02:00
|
|
|
struct tm *today;
|
|
|
|
|
|
|
|
gettimeofday(&ttime, NULL);
|
|
|
|
- today=localtime(&(ttime.tv_sec));
|
|
|
|
+ time_t tmp = (time_t)ttime.tv_sec;
|
|
|
|
+ today=localtime(&tmp);
|
|
|
|
|
|
|
|
position_date[i].year=today->tm_year;
|
|
|
|
position_date[i].month=today->tm_mon;
|
2008-05-18 02:02:03 +02:00
|
|
|
@@ -231,7 +232,8 @@
|
2013-06-18 13:46:51 +02:00
|
|
|
struct tm *today;
|
|
|
|
|
|
|
|
gettimeofday(&ttime, NULL);
|
|
|
|
- today=localtime(&(ttime.tv_sec));
|
|
|
|
+ time_t tmp = (time_t)ttime.tv_sec;
|
|
|
|
+ today=localtime(&tmp);
|
|
|
|
|
|
|
|
time_date[i].year=today->tm_year;
|
|
|
|
time_date[i].month=today->tm_mon;
|
2008-05-18 02:02:03 +02:00
|
|
|
@@ -258,7 +260,8 @@
|
2013-06-18 13:46:51 +02:00
|
|
|
struct tm *today;
|
|
|
|
|
|
|
|
gettimeofday(&ttime, NULL);
|
|
|
|
- today=localtime(&(ttime.tv_sec));
|
|
|
|
+ time_t tmp = (time_t)ttime.tv_sec;
|
|
|
|
+ today=localtime(&tmp);
|
|
|
|
|
|
|
|
lap_date[i].year=today->tm_year;
|
|
|
|
lap_date[i].month=today->tm_mon;
|
2008-05-18 02:02:03 +02:00
|
|
|
@@ -285,7 +288,8 @@
|
2013-06-18 13:46:51 +02:00
|
|
|
struct tm *today;
|
|
|
|
|
|
|
|
gettimeofday(&ttime, NULL);
|
|
|
|
- today=localtime(&(ttime.tv_sec));
|
|
|
|
+ time_t tmp = (time_t)ttime.tv_sec;
|
|
|
|
+ today=localtime(&tmp);
|
|
|
|
|
|
|
|
position_date[i].year=today->tm_year;
|
|
|
|
position_date[i].month=today->tm_mon;
|