[Tickets #13757] nextFreebusy/prevFreebusy not working if french date

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Dec 15 15:29:15 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/13757
------------------------------------------------------------------------------
  Ticket             | 13757
  Created By         | pascal.rigaux at univ-paris1.fr
  Summary            | nextFreebusy/prevFreebusy not working if french date
  Queue              | Kronolith
  Version            | 4.2.3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


pascal.rigaux at univ-paris1.fr (2014-12-15 15:29) wrote:

In dynamic interface, nextFreebusy/prevFreeBusy are doing

   Date.parse($('kronolithFBDate').innerHTML)

which can't work if Kronolith.conf.date_format is not default js date.

"insertFreeBusy" is doing the right job : removing the day of week +  
Date.parseExact with Kronolith.conf.date_format


The attached patch is quite straight-forward :
it creates a function to do the job and uses it
(the date passed around is no more the unparsed string, but a Date js object)

(patch tested on 4.2.3 but applies cleanly on git HEAD)






More information about the bugs mailing list