6.0.0-beta1
7/12/25

[#10435] Wrong Kronolith.conf.date_format
Summary Wrong Kronolith.conf.date_format
Queue Kronolith
Queue Version 3.0.7
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester cernik (at) fel (dot) cvut (dot) cz
Created 08/17/2011 (5078 days ago)
Due 08/17/2011 (5078 days ago)
Updated 10/27/2012 (4641 days ago)
Assigned
Resolved 10/17/2012 (4651 days ago)
Github Issue Link
Github Pull Request
Milestone 4
Patch No

History
10/27/2012 12:56:14 AM Git Commit Comment #11 Reply to this comment
Changes have been made in Git (develop):

commit 3adde19ef06fbb071ed49a3b5e4bf2e94ed36b14
Author: Jan Schneider <jan@horde.org>
Date:   Wed Oct 17 11:56:03 2012 +0200

     Support non-padding operators in date formatting (Bug #10435).

  .../Core/lib/Horde/Core/Script/Package/Datejs.php  |    4 +-
  framework/Core/package.xml                         |    2 +
  framework/Date/lib/Horde/Date.php                  |   26 
++++++++++----------
  framework/Date/package.xml                         |    4 +-
  4 files changed, 19 insertions(+), 17 deletions(-)

http://git.horde.org/horde-git/-/commit/3adde19ef06fbb071ed49a3b5e4bf2e94ed36b14
10/17/2012 09:56:56 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ 4
 
10/17/2012 09:56:16 AM Git Commit Comment #10 Reply to this comment
Changes have been made in Git (master):

commit 3adde19ef06fbb071ed49a3b5e4bf2e94ed36b14
Author: Jan Schneider <jan@horde.org>
Date:   Wed Oct 17 11:56:03 2012 +0200

     Support non-padding operators in date formatting (Bug #10435).

  .../Core/lib/Horde/Core/Script/Package/Datejs.php  |    4 +-
  framework/Core/package.xml                         |    2 +
  framework/Date/lib/Horde/Date.php                  |   26 
++++++++++----------
  framework/Date/package.xml                         |    4 +-
  4 files changed, 19 insertions(+), 17 deletions(-)

http://git.horde.org/horde-git/-/commit/3adde19ef06fbb071ed49a3b5e4bf2e94ed36b14
09/11/2012 04:37:06 PM tulakj (at) gmail (dot) com Comment #9
New Attachment: horde_date_bug.jpg Download
Reply to this comment
Same problem with date format in Czech as above (pic in attachment).

Versions:
horde: 5.0.0beta 5
kronolith: 4.0.0beta1

apache2: 2.2.16-6+squeeze7
php5: 5.3.3-7+squeeze14
05/03/2012 05:34:28 PM cernik (at) fel (dot) cvut (dot) cz Comment #8 Reply to this comment
Well, not all files are in install dir :). Check  /usr/share/php/Horde/Nls.php
05/03/2012 05:12:24 PM zm (at) ensis (dot) cz Comment #7 Reply to this comment

[Show Quoted Text - 15 lines]
Thank You very much for Your answer, but in my version of horde (Horde 
Groupware 4.0.7, in which is Horde 4.0.14 and Calendar (kronolith) 
3.0.16), I can found only: horde_install_dir/config/nls.php and in 
this file there is only array of configuration for languages, but no 
function at all..
05/03/2012 02:19:26 PM cernik (at) fel (dot) cvut (dot) cz Comment #6 Reply to this comment
I dont know reason but horde use owen version of strftime. This 
function in php works but horde version with cs_CZ.UTF8 no. They have 
some tests for locales and their tests for cs_CZ dont fail .. so it;s 
hard to explain.

very short and working patch is already in different id bug. Shortly 
(copy & paste):


           Working pactch is add this line to Nls.php:
            self::$_cache['nl_info'][$item] =
             preg_replace('/%-([dm])/','%$1',self::$_cache['nl_info'][$item]);
              just before return in getLangInfo($item) - but that not 
nice patch :-)



05/03/2012 01:48:19 PM zm (at) ensis (dot) cz Comment #5 Reply to this comment
I just install actual version of horde with Kronolith and have the 
same problem in czech language (not possible to add event in calendar).
I was trying to change lib/Event.php as described but it does not work.
Then I found similar problem:
http://permalink.gmane.org/gmane.comp.horde.devel/19824
.. but it does not help me too.
I try to change js/date/cs-CZ.js according to german one, but it does 
not help too.. :-(

08/18/2011 04:09:30 PM Jan Schneider Comment #4 Reply to this comment
Though I see this too, no idea what's going on.
08/18/2011 02:18:28 PM Jan Schneider Comment #3
State ⇒ Not A Bug
Reply to this comment
You have broken system locales then.
08/18/2011 01:28:45 PM cernik (at) fel (dot) cvut (dot) cz Comment #2 Reply to this comment
I probable found problem.
In (kronolith) lib/Event.php is in function toJson  line:
  $json->sd = $this->start->strftime('%x');
if i change it to:
  $json->sd = $this->start->strftime('%d.%m.%Y');
(and for end date same) then it works ok.
Same problem is in button "Today" in dyn. kronolith (date_format_mini) 
... but if i change it to  anything different (from %x), it works ok.

Seen to be problem only in czech language ...
08/17/2011 01:35:56 PM cernik (at) fel (dot) cvut (dot) cz Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Kronolith
Due ⇒ 08/17/2011
Summary ⇒ Wrong Kronolith.conf.date_format
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
Hi,
when i change language from English->Czech, then in dynamic kronolith   
Kronolith.conf.date_format  have weird format "%-d%-m.yyyy" (start and 
end date). If i want edit event then i see   "%-d%-m.2011". When i 
want create event then i see at least numbers "%-17-%-34.2011 (second 
number are minutes)

  I tried change in Horde date_format and date_format_mini, but it 
doesnt help. In traditional calendar is everything ok. I tried also 
Germen, French, Slovak and they are ok. Something specific to  czech 
language?
Any hint?


I have latest stable h4 (horde, imp.ingo,kronolith,mnemo,nag,turba).
os : debian - latest stable x64
apache 2.2.16
php 5.3.3-7+squeeze3
postgresql 8.4

Saved Queries