diff options
Diffstat (limited to 'tools/stats-tool.c')
-rwxr-xr-x | tools/stats-tool.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/stats-tool.c b/tools/stats-tool.c index 5695048f..105dc497 100755 --- a/tools/stats-tool.c +++ b/tools/stats-tool.c @@ -108,12 +108,10 @@ static char *option_last_file_name = NULL; static bool parse_start_ts(const char *key, const char *value, gpointer user_data, GError **error) { - GTimeVal time_val; + struct tm tm; - if (!g_time_val_from_iso8601(value, &time_val)) - return false; - - option_start_ts = time_val.tv_sec; + strptime(value, "%FT%TZ", &tm); + option_start_ts = mktime(&tm); return true; } |