6.0.0-beta1
7/12/25

[#9916] WINDOWS: Failed to create event
Summary WINDOWS: Failed to create event
Queue Kronolith
Queue Version 3.0
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester admin (at) meld0 (dot) com
Created 04/14/2011 (5203 days ago)
Due
Updated 08/08/2011 (5087 days ago)
Assigned
Resolved 04/14/2011 (5203 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/08/2011 01:36:00 PM Jan Schneider Comment #8 Reply to this comment
Now i get :

"Zeitformat (Mon Aug 08 2011 00:00:00 GMT+0200 (Mitteleuropäische 
Sommerzeit) 12:00 AM) nicht erkannt"

when i want to add a new event
That's not any time format we use. Did *you* enter that?

Generally, if PHP on windows doesn't support strptime(), and isn't 
able to parse the string that the user sends either,  there is nothing 
we can do.
08/08/2011 01:27:09 PM joniw (at) t-online (dot) de Comment #7 Reply to this comment
Now i get :

"Zeitformat (Mon Aug 08 2011 00:00:00 GMT+0200 (Mitteleuropäische 
Sommerzeit) 12:00 AM) nicht erkannt"

when i want to add a new event
08/08/2011 11:58:55 AM Git Commit Comment #6 Reply to this comment
Changes have been made in Git for this ticket:

Fix variable name (Bug #9916).

  3 files changed, 3 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/041c0facfd7fc786481de919b9b56a56fe4f1315
08/08/2011 11:18:28 AM joniw (at) t-online (dot) de Comment #5 Reply to this comment
This bug still seems to be not solved. When i want to create an event 
under windows i see in the log:

NOTICE: HORDE [kronolith] PHP ERROR: Undefined variable: start [pid 
724 on line 2737 of 
"D:\Groupware-Server\horde-git\kronolith\lib\Kronolith.php"]
04/15/2011 10:25:44 AM Jan Schneider Comment #4 Reply to this comment
This function only exists in PHP 5.3. If used at all, you have to 
check whether this method exist. And do NOT replace existing code. 
Finally, please use unified diffs when creating patches.
04/15/2011 09:59:21 AM admin (at) meld0 (dot) com Comment #3
New Attachment: Kronolith.php.patch Download
Reply to this comment
After trying your fix for this bug and receiving a error notice in the 
horde interface, i edited the function to use:

http://www.php.net/manual/de/function.date-parse-from-format.php

I attached a patch file for the kronolith.php, have a look at it. It 
works fine for me with both 24h/12h setting.
04/14/2011 10:26:33 PM Jan Schneider State ⇒ Resolved
Assigned to Jan Schneider
 
04/14/2011 10:26:26 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

[jan] Fix undefined function on Windows (Bug #9916).

  3 files changed, 9 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/e584f37b15accc799ee27a06c6c8da0073c86af0
04/14/2011 09:40:44 PM admin (at) meld0 (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ WINDOWS: Failed to create event
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Running horde4 on Server 2008 r2 apache2 / php 5.3.6

When trying to create (save) an event nothing happens you just see the 
spinning little circle in the background.
You can click cancel and use horde but the event is not created.

log file indicates: PHP Fatal error:  Call to undefined function 
strptime() in 
C:\\Server\\www\\default\\horde\\kronolith\\lib\\Kronolith.php on line 
2625,

and the php documentation reveals (under Notes): 
http://php.net/manual/en/function.strptime.php
     Note: This function is not implemented on Windows platforms.


Saved Queries