Skip to content
Snippets Groups Projects
Commit bed95e5a authored by Moe Jette's avatar Moe Jette
Browse files

Add "T" between date and time in jobcomp/filetxt output.

parent 32293e92
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ documents those changes that are of interest to users and admins.
-- Bluegene - before assigning a job to a block the plugin will check the bps
to make sure they aren't in error state.
-- Change time format in job completion logging (JobCompType=jobcomp/filetxt)
from "MM/DD HH:MM:SS" to "YYYY-MM-DD HH:MM:SS", conforming with the ISO8601
from "MM/DD HH:MM:SS" to "YYYY-MM-DDTHH:MM:SS", conforming with the ISO8601
standard format.
* Changes in SLURM 1.1.0-pre6
......
......@@ -170,7 +170,7 @@ _get_user_name(uint32_t user_id, char *user_name, int buf_size)
}
/*
* make_time_str - convert time_t to string with "YYYY-MM-DD HH:MM:SS"
* make_time_str - convert time_t to string with "YYYY-MM-DDTHH:MM:SS"
* Note this is the ISO8601 standard format
* IN time - a time stamp
* IN str_size - size of string buffer
......@@ -182,7 +182,7 @@ _make_time_str (time_t *time, char *string, int str_size)
struct tm time_tm;
localtime_r (time, &time_tm);
snprintf ( string, str_size, "%4.4u-%2.2u-%2.2u %2.2u:%2.2u:%2.2u",
snprintf ( string, str_size, "%4.4u-%2.2u-%2.2uT%2.2u:%2.2u:%2.2u",
(time_tm.tm_year + 1900), (time_tm.tm_mon+1), time_tm.tm_mday,
time_tm.tm_hour, time_tm.tm_min, time_tm.tm_sec);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment