[PATCH] date zero filling
Neil Williams
linux at codehelp.co.uk
Sat Feb 4 14:22:44 EST 2006
On Saturday 04 February 2006 5:59 pm, Andreas Köhler wrote:
> Hi,
>
> I do not care about design, like whether date printing should be in
> libqof, right now.
There may need to be some but probably not all that is currently in place -
the gnc-date doxygen documentation says as much. The issue will be resolved
during the life of libqof1 but probably not until after G2 because the
decisions would require too much discussion here about where the functions
should go and how to handle backwards-compatibility in programs like GnoTime
that use these functions. Let's slate that discussion for part of the wider
discussions on QOF once we have a G2 release.
> This is rather a straight forward patch to make
> the dates look like the strings in the Date/Time section of the
> GnuCash preferences dialog. It adds zero filling to day and month in
> dates and times for UK, CE and US
Personally, as a gnucash user in the UK, I'd much rather *not* have zero
padding on data entry or data display of UK date formats.
There is no UK consensus on whether 04/02/06 is preferable to 4/2/6 or 4/2/06.
It's a "problem" of the 21st century where single digit years can cause
confusion. In my business life, all three of the above are perfectly
acceptable, whether on casual notes or official documents.
> . This may not catch every
> appearance, but the register is much more appealing to me than
> without it.
Which makes the patch subjective - leading to a probable need for some kind of
configuration option. David - is there a HIG issue here?
> Feel free to apply any subset of it.
I feel we should look at this as a possible config option and bounce the idea
around on gnucash-user before assuming that zero padding is the "Right Thing
To Do".
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20060204/7f16abc0/attachment.bin
More information about the gnucash-devel
mailing list