From: Tom Lane <tgl@sss.pgh.pa.us>
To: paul@intekon.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16143: PGTYPEStimestamp_fmt_asc() returns the incorrect month when the format specifier %b is used.
Date: Fri, 29 Nov 2019 15:42:23 -0500
Message-ID: <8205.1575060143@sss.pgh.pa.us> (raw)
In-Reply-To: <16143-0d861eb8688d3fef@postgresql.org>
References: <16143-0d861eb8688d3fef@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> PGTYPEStimestamp_fmt_asc() returns the incorrect month when the format
> specifier %b is used.
Yeah, you're clearly right. Defining struct pg_tm's tm_mon differently
from the common understanding of struct tm's tm_mon may not have been
the greatest idea we ever had :-(. I dug through the uses of tm_mon in
the rest of ecpglib and didn't find any other similar mistakes, though.
Will fix, thanks for the report!
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, paul@intekon.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16143: PGTYPEStimestamp_fmt_asc() returns the incorrect month when the format specifier %b is used.
In-Reply-To: <8205.1575060143@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox