<div dir="ltr"><div dir="auto"><div dir="ltr">Hi Michael, <br><br>I also got curious where the conversion is done, so I looked into the code.<br><br>Scontrol gets dates like submit time in unix time from slurmctld, then converts it to local time on the machine where the command <span class="m_-1579439736217201129gmail-gr_ m_-1579439736217201129gmail-gr_207 m_-1579439736217201129gmail-gr-alert m_-1579439736217201129gmail-gr_spell m_-1579439736217201129gmail-gr_inline_cards m_-1579439736217201129gmail-gr_disable_anim_appear m_-1579439736217201129gmail-ContextualSpelling m_-1579439736217201129gmail-ins-del m_-1579439736217201129gmail-multiReplace" id="m_-1579439736217201129gmail-207">scontrol</span> show job is executed.<br><br>This is seen in the code. Slurmctld uses unix time without conversions, for example job_mgr.c: detail_ptr->submit_time = time(NULL); <br>The conversion to local time for scontrol show job I find through scontrol.c, where the function scontrol_print_job from info_job.c is called. It calls slurm_make_time_str, which eventually converts the time from UTC to local time, rc = localtime_r(timep, result); <br></div><div dir="ltr">Slurmdbd also uses unix time, as seen in src/plugins/accounting_<wbr>storage/mysql/accounting_<wbr>storage_mysql.c, and for example as_mysql_acct.c.<br><br>So it seems to me, unix time is used for dates, which is then converted with localtime for certain output to be readable for humans. Since Slurm is a C program run in a Unix environment, that is also what I would expect. <br><br>We have users all over the world, and they can set their own time zone as an environment variable in their .profile. Then Slurm displays their local time for them when they run scontrol, squeue, and other Slurm commands with date information. Else they get server default local time.<br><br></div><div>Best regards, <br></div><div>Jessica Nettelblad, UPPMAX<br></div></div>
</div>