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

Default time formato for all commands is now ISO 8601 (yyyy-mm-ddThh:mm:ss).

parent 84e4c30f
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,8 @@ documents those changes that are of interest to users and admins. ...@@ -17,7 +17,8 @@ documents those changes that are of interest to users and admins.
processor count although the memory and disk space configuration can processor count although the memory and disk space configuration can
be loaded from the compute node when it starts. be loaded from the compute node when it starts.
-- Add configure option "--disable-iso8601" to disable SLURM use of ISO 8601 -- Add configure option "--disable-iso8601" to disable SLURM use of ISO 8601
time format at the time of SLURM build. time format at the time of SLURM build. Default output for all commands
is now ISO 8601 (yyyy-mm-ddThh:mm:ss).
* Changes in SLURM 1.4.0-pre6 * Changes in SLURM 1.4.0-pre6
============================= =============================
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\*****************************************************************************/ \*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <strings.h> #include <strings.h>
...@@ -448,7 +452,7 @@ slurm_make_time_str (time_t *time, char *string, int size) ...@@ -448,7 +452,7 @@ slurm_make_time_str (time_t *time, char *string, int size)
if ( *time == (time_t) 0 ) { if ( *time == (time_t) 0 ) {
snprintf(string, size, "Unknown"); snprintf(string, size, "Unknown");
} else { } else {
#ifdef ISO8601 #ifdef USE_ISO_8601
/* Format YYYY-MM-DDTHH:MM:SS, ISO8601 standard format, /* Format YYYY-MM-DDTHH:MM:SS, ISO8601 standard format,
* NOTE: This is expected to break Maui, Moab and LSF * NOTE: This is expected to break Maui, Moab and LSF
* schedulers management of SLURM. */ * schedulers management of SLURM. */
......
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