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 |
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
State ⇒ Resolved
Milestone ⇒ 4
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
New Attachment: horde_date_bug.jpg
Versions:
horde: 5.0.0beta 5
kronolith: 4.0.0beta1
apache2: 2.2.16-6+squeeze7
php5: 5.3.3-7+squeeze14
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..
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 :-)
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.. :-(
State ⇒ Not A Bug
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 ...
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Kronolith
Due ⇒ 08/17/2011
Summary ⇒ Wrong Kronolith.conf.date_format
Type ⇒ Bug
Priority ⇒ 1. Low
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