1
0
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:
Bruce Momjian
2000-01-02 01:37:28 +00:00
parent eb9bb3de33
commit 7a877dfd2d
5 changed files with 7 additions and 386 deletions

View File

@@ -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);