[dev] Kronolith(Git) can't add event if I use 12h time format

Jan Schneider jan at horde.org
Wed Feb 23 08:30:59 UTC 2011


Zitat von Hiromi Kimura <hiromi at tac.tsukuba.ac.jp>:

> 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.

That was not my question. I was wondering if Japanese are used to  
enter AM/PM literally? Or are you *alway* using 午前/午後?

> How about call setlocale(LC_TIME,'C') before popup ?

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list