Commit 96e0ccc2 authored by Robert Haas's avatar Robert Haas

Fix incorrect comment: pgtime's tm_mon is 1-based, not 0-based.

The comments in formatting.c already said that tm_mon was 1-based not
0-based, but the comments here disagreed.

Dmitry Fedin
parent 52df3420
...@@ -28,7 +28,7 @@ struct pg_tm ...@@ -28,7 +28,7 @@ struct pg_tm
int tm_min; int tm_min;
int tm_hour; int tm_hour;
int tm_mday; int tm_mday;
int tm_mon; /* origin 0, not 1 */ int tm_mon; /* origin 1, not 0! */
int tm_year; /* relative to 1900 */ int tm_year; /* relative to 1900 */
int tm_wday; int tm_wday;
int tm_yday; int tm_yday;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment