| 1 | diff --git a/champlain/champlain-network-tile-source.c b/champlain/champlain-network-tile-source.c |
| 2 | index 7cadfa5..ad24fd4 100644 |
| 3 | |
| 4 | |
| 5 | get_modified_time_string (ChamplainTile *tile) |
| 6 | |
| 7 | if (time == NULL) |
| 8 | return NULL; |
| 9 | - |
| 10 | - struct tm *other_time = gmtime (&time->tv_sec); |
| 11 | + time_t sec = time->tv_sec; |
| 12 | + struct tm *other_time = gmtime (&sec); |
| 13 | char value[100]; |
| 14 | |
| 15 | #ifdef G_OS_WIN32 |