From: | Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz> |
---|---|
To: | "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net> |
Cc: | Jasen Betts <jasen(at)xnet(dot)co(dot)nz>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Money casting too liberal? |
Date: | 2013-03-28 22:04:27 |
Message-ID: | 5154BE6B.70201@archidevsys.co.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 29/03/13 10:13, D'Arcy J.M. Cain wrote:
> On 28 Mar 2013 20:50:42 GMT
> Jasen Betts <jasen(at)xnet(dot)co(dot)nz> wrote:
>> it actually does that, if you have the locale installed you can set
>> LC_MONETARY to Japan and get no decimals and a Yen symbol
>> or to UAE and get three decimals and their currency symbol.
> Must have been added by someone else after I worked on it. I thought
> about that issue but felt that that was the wrong solution. The
> problem is that the same data displays differently depending on who
> runs the query.
>
> I would have rather made that part of the column definition similar to
> how we create timestamps with or without timezones. If a column is
> tracking Yen it should always be Yen. Y10,000 should never display as
> $100.00 just because the locale changes.
>
Eeeks!
I agree...
Hmm... This should optionally apply to time. e.g.
time_i_got_up_in_the_morning should reflect the time zone where I got up
- if I got up at 8am NZ time then this should be displayed, not 12pm (12
noon) to someone in Los Angeles or 3am in Tokyo! (have a 'localtime'
data type?- possibly add the timezone code if displayed in a different
time zone.)
Cheers,
Gavin
From | Date | Subject | |
---|---|---|---|
Next Message | Jasen Betts | 2013-03-28 22:56:29 | Re: Is there any way to listen to NOTIFY in php without polling? |
Previous Message | Jasen Betts | 2013-03-28 21:53:42 | Re: Unexpected behaviour of encode() |