Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jdx on April 14, 2023, 01:38:24 am

Title: Date format in source files
Post by: jdx on April 14, 2023, 01:38:24 am
I have noticed that recently date format has been changed in a few files, e.g. see version.h in r13258. This format is misleading, taking into account that C::B is an open, international (https://en.wikipedia.org/wiki/Date_format_by_country) project. E.g. what would 23/04/23 mean? The correct date format for such projects should be ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601).
Title: Re: Date format in source files
Post by: ollydbg on April 14, 2023, 03:10:52 am
I agree.
I like the YYYY-MM-DD format mentioned in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601).
One question:  Where is the file "version.h"?
In my local C::B build folder, I only find a file named "autorevision.h", and I see it does use YYYY-MM-DD format in its svnDate value.
Title: Re: Date format in source files
Post by: jdx on April 14, 2023, 05:09:24 am
I meant "version.h changed in revision 13258". It's actual location is <SRC_ROOT>/src/plugins/contrib/codesnippets/version.h.
Title: Re: Date format in source files
Post by: ollydbg on April 14, 2023, 07:09:04 am
I meant "version.h changed in revision 13258". It's actual location is <SRC_ROOT>/src/plugins/contrib/codesnippets/version.h.
OK, I see,  It is in a plug in source code.
I suggest every plugin should use the standard time format.
Title: Re: Date format in source files
Post by: ollydbg on May 19, 2023, 05:11:33 am
I have wrote a ticket here:
Code::Blocks / Tickets / #1394 Date format in source files, I think it should be YYYY-MM-DD (https://sourceforge.net/p/codeblocks/tickets/1394/)