mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Remove DATEDEBUG because it didn't look Y2K safe, and fix timestamp elog
to be Y2K safe.
This commit is contained in:
@@ -233,8 +233,8 @@ tprintf_timestamp()
|
||||
time = localtime(&tm);
|
||||
|
||||
sprintf(pid, "[%d]", MyProcPid);
|
||||
sprintf(timestamp, "%02d%02d%02d.%02d:%02d:%02d.%03d %7s ",
|
||||
time->tm_year, time->tm_mon + 1, time->tm_mday,
|
||||
sprintf(timestamp, "%04d%02d%02d.%02d:%02d:%02d.%03d %7s ",
|
||||
time->tm_year+1900, time->tm_mon + 1, time->tm_mday,
|
||||
time->tm_hour, time->tm_min, time->tm_sec,
|
||||
(int) (tv.tv_usec/1000), pid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user