[dev] Kronolith(Git) can't add event if I use 12h time format
Hiromi Kimura
hiromi at tac.tsukuba.ac.jp
Wed Feb 23 01:55:22 UTC 2011
Quote: Jan Schneider <jan at horde.org>?
> Zitat von Hiromi Kimura <hiromi at tac.tsukuba.ac.jp>:
>
>> From: Jan Schneider <jan at horde.org>
>> Subject: Re: [dev] Kronolith(Git) can't add event if I use 12h time format
>> Date: Mon, 21 Feb 2011 11:56:34 +0100
>>
>>> Zitat von Hiromi Kimura <hiromi at tac.tsukuba.ac.jp>:
>>>
>>>> Hello,
>>>> I can't add event to Kronolith(git) local calendar if I use 12h time
>>>> format.
>>>> 24h time format is OK.
>>>> The warning says "You used an unknown time format ...".
>>>
>>> *Where* do you use the 12h time format, i.e. *how* do you create the
>>> *event?
>>
>> Oh, I forget mention that I tested the dynamic view of Kronolith.
>>
>> I have tried to add event on some place of the Kronolith application window,
>> "Add Event" button, time slot of daily or weekly view or a day of
>> monthly view.
>> (1) click the button or slot of the view,
>> (2) popup event dailog,
>> (3) adjust start or end time by pulldown list,
>> then, popup the yellow dialog, it says "You used an unknown time format...".
>
> The fix it not that easy unfortunately. As the comment in Event.php
> clearly explains, this setlocale() call is necessary. Beside that,
> the js code you referenced is 3rd party library code.
> It might make more sense to instead force the usage of the
> (untranslated) AM/PM across the code instead. Would that work for
> Japanese, or don't you use AM/PM at all?
Yes. I always test horde,imp etc. for Japanese.
Please look this screen shot:
http://www.tac.tsukuba.ac.jp/~hiromi/kronolith-test1.png
This shot is at the moment of adjust start time.
Currently, horde and kronolith allow use of language specific date format.
You can see Japanese AM chars in the start,end time in the shot.
So, the popup dialog sends form data with Japanese chars.
How about call setlocale(LC_TIME,'C') before popup ?
-=-=-=-=-
Hiromi Kimura http://www.tac.tsukuba.ac.jp/~hiromi/
PGP Fingerprint16 = 2A 27 2E 46 9E 75 4E 3D E3 FD 5A DC 2A AA 3A 2E
More information about the dev
mailing list