[kronolith] kronolith: two post-install snags
Jan Schneider
jan at horde.org
Tue Oct 2 09:23:49 UTC 2012
Zitat von cjdl01 <cjdl01 at brokensolstice.com>:
>>>>
>>>> Well, then there is probably something wrong with your PHP. This
>>>> is the PHP equivalent of the C script:
>>>>
>>>> $t = time();
>>>>
>>>> $locale = setlocale(LC_TIME, "C");
>>>> $fmt_C = nl_langinfo(T_FMT);
>>>> $result = strftime($fmt_C, $t);
>>>> printf("%s\n%s\n%s\n", $locale, $fmt_C, $result);
>>>>
>>>> $locale = setlocale(LC_TIME, "en_US.UTF-8");
>>>> $fmt_US = nl_langinfo(T_FMT);
>>>> $result = strftime($fmt_US, $t);
>>>> printf("%s\n%s\n%s\n", $locale, $fmt_US, $result);
>>>>
>>>> The output should be the same.
>>>> --
>>>> Jan Schneider
>>>
>>>
>>> Hi Jan. Here is the output from the php script:
>>>
>>> C
>>> %H:%M:%S
>>> 11:14:23
>>> en_US.UTF-8
>>> %r
>>> 11:14:23 AM
>>
>> I should probably add that it yields this output both on the
>> command line and within the Horde context (using the php shell
>> included in horde).
>>
>> Thanks!
>>
>> -Chris
>
> Hi Jan,
>
> Since there doesn't seem to be an issue with my c library or my php,
> should I file a bug for this? Or is there something else we can do?
Since I cannot reproduce this, a bug report won't help either. I'm
afraid you have to track this down yourself.
--
Jan Schneider
The Horde Project
http://www.horde.org/
More information about the kronolith
mailing list