[Glass] DateAndTime ... all pretty strange

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Wed Jan 11 15:56:15 PST 2017


Okay, so when you said:

   "DateAndTime now printString" I get (e.g.) 
'2017-01-11T20:37:32.28995895385742+01:00' which looks pretty ok.

It really doesn't "look okay" because the printString should have been 
displayed as:

   '2017-01-11T20:37:32,28995895385742+01:00'

using a $, instead of a $. ... is that what you are saying? Or perhaps 
the format using $. is correct because it conforms to the spec?

I see that a year ago there was an attempt to address a Locale-based 
issue[1], and it might be that the fix was not quite correct as I think 
that a $. is still being used here[2]:

[ aStream atEnd | (ch = $.) | (ch = $+) | (ch = $-) ]

and perhaps that line should look like this:

[ aStream atEnd | (ch = decimalPointChr) | (ch = $+) | (ch = $-) ]

Could you give this patch a try and see if it fixes your problem?

Dale

[1] https://github.com/GsDevKit/GsDevKit/issues/82
[2] 
https://github.com/glassdb/glass/commit/ed2a944e7eb5095f633c4a2d2c06ad68a7c20211#diff-b6b7c7433911f46cc6441cd69d260015R25

On 1/11/17 3:30 PM, Marten Feldtmann wrote:
>
> I have the answer for this strange behaviour - all the method comes 
> from Squeak and they are Locale oriented - and my decimalPoint is $, 
> and not $. - this of course is a pretty critical stuff. It works for 
> all the US persons, but not for us here in Germany.
>
>
> Marten
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170111/8bcab3eb/attachment.html>


More information about the Glass mailing list