static bool parse_start_ts(const char *key, const char *value,
gpointer user_data, GError **error)
{
static bool parse_start_ts(const char *key, const char *value,
gpointer user_data, GError **error)
{
- 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);
munmap(history_file->addr, history_file->len);
munmap(temp_file->addr, temp_file->len);
munmap(history_file->addr, history_file->len);
munmap(temp_file->addr, temp_file->len);
if (option_create > 0)
stats_create(data_file, option_create, option_interval,
start_ts, rec);
if (option_create > 0)
stats_create(data_file, option_create, option_interval,
start_ts, rec);