summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2017-01-24 14:36:17 +0000
committerRobert Haas2017-01-24 14:36:17 +0000
commit96e0ccc2b589eda26585ed2a8dabf34b16747c1a (patch)
tree42fe000f7f869f16824bfbbaac88c5b69b66ca08
parent52df3420cd241b1411da3e4b24318db12bf22cba (diff)
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
-rw-r--r--src/include/pgtime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/pgtime.h b/src/include/pgtime.h
index dcd073076e..52b54b920a 100644
--- a/src/include/pgtime.h
+++ b/src/include/pgtime.h
@@ -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;