diff --git a/checkin_notes b/checkin_notes index 93f7b0d8c6..7ffe6a510d 100755 --- a/checkin_notes +++ b/checkin_notes @@ -25934,3 +25934,6 @@ David 13 Mar 2005 handle_request.C sched_config.C,h sched_send.C + +David 13 Mar 2005 + - db_dump: name archive dirs X_YYYY_mm_dd_hh_mm_ss diff --git a/sched/db_dump.C b/sched/db_dump.C index 3491721336..f9826a0838 100644 --- a/sched/db_dump.C +++ b/sched/db_dump.C @@ -836,14 +836,16 @@ int main(int argc, char** argv) { struct tm* tmp; time_t now = time(0); - tmp = gmtime(&now); - sprintf(buf, "mv %s %s_%d_%d_%d_%d", + tmp = localtime(&now); + sprintf(buf, "mv %s %s_%d_%d_%d_%d_%d_%d", spec.final_output_dir, spec.final_output_dir, - tmp->tm_mday, - tmp->tm_mon+1, 1900+tmp->tm_year, - (int)now + tmp->tm_mon+1, + tmp->tm_mday, + tmp->tm_hour, + tmp->tm_min, + tmp->tm_sec ); retval = system(buf); if (retval) {