Fix incorrect comment: pgtime's tm_mon is 1-based, not 0-based.
authorRobert Haas <rhaas@postgresql.org>
Tue, 24 Jan 2017 14:36:17 +0000 (09:36 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 24 Jan 2017 14:36:17 +0000 (09:36 -0500)
The comments in formatting.c already said that tm_mon was 1-based not
0-based, but the comments here disagreed.

Dmitry Fedin

src/include/pgtime.h

index dcd073076e031f59c362bbdbb43a23157a527aa2..52b54b920ad489bb972e7aa10d12ab1ac8d2a364 100644 (file)
@@ -28,7 +28,7 @@ struct pg_tm
    int         tm_min;
    int         tm_hour;
    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_wday;
    int         tm_yday;