Japanese dates problem

Sarah Reichelt sarah.reichelt at gmail.com
Wed Dec 28 00:26:16 EST 2005


Hi All,

I have received some error reports from Japanese users of my Pic-a-POD
program and they all get an error at the same point. Here is the
script snippet:

        convert tNow from long system date to seconds
        subtract 86400 from tNow

with the error report showing:

      Type: subtract: destination has a bad format (numeric?)

So it looks as if the date conversion is not working correctly. I'm
pretty sure the value of tNow is OK since it is just taken from a
field that is set to "the long system date" on startup. I don't know
anything about Unicode, but the textFont of the stack & by inheritance
the field, is Verdana, so I don't think that should be doing anything.

Is anyone out there running a Japanese system that can give me any
ideas? The reports have all come from Mac users so far, but I don't
know if that is relevant. Is there a way to detect a Japanese system
(or perhaps one where the default font is Unicode) and use "the long
date" instead of the long system date if so?

TIA,
Sarah



More information about the Use-livecode mailing list