Add the GMT offset in the rotated chunk path
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 924ac92316bf0c9add8a79e15b7087aa421a6c44..375324aec870bea400ce620b95fe8603ed1357cd 100644 (file)
@@ -4377,7 +4377,7 @@ int cmd_rotate_session(struct ltt_session *session,
        int ret;
        size_t strf_ret;
        struct tm *timeinfo;
-       char datetime[16];
+       char datetime[21];
        time_t now;
        bool ust_active = false;
 
@@ -4479,7 +4479,7 @@ int cmd_rotate_session(struct ltt_session *session,
                ret = -LTTNG_ERR_UNK;
                goto end;
        }
-       strf_ret = strftime(datetime, sizeof(datetime), "%Y%m%d-%H%M%S",
+       strf_ret = strftime(datetime, sizeof(datetime), "%Y%m%dT%H%M%S%z",
                        timeinfo);
        if (!strf_ret) {
                ERR("Failed to format local time timestamp in rotate session command");
This page took 0.036374 seconds and 5 git commands to generate.