Ticket #166 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 months ago

development-full-load not working on other Locales

Reported by: antcooper Owned by: sean@…
Type: defect Priority: high
Milestone: Component: Miscellaneous
Version: 5.0 Severity: normal
Keywords: mode Cc:

Description

I wasn't having any luck setting my app to development-full-load, no matter what I did it just wasn't updating unless I added &fusebox.load=1 onto my URL, which was quite annoying when developing... so I thought I'd better have a look at fixing it.

Turns out that loading is determined by comparing dates on the circuit.xml files but as my Locale is "English (UK)" the parseDateTime function screws up.

parseDateTime(fuseboxFiles.dateLastModified)

Returns "{ts '2006-07-11 21:19:00'}" for "07/11/06 21:19" not "{ts '2006-11-07 21:19:00'}"

Suggested fix

Alter occurances of parseDateTime() to LSParseDateTime() in:

fuseboxApplication.cfc, 2 occurances on line 163

fuseboxCircuit.cfc, 2 occurances on line 110

I guess this is a hard one to test for outside the US ;-)

Cheers, Ant

Attachments

Change History

Changed 2 years ago by antcooper

Sorry... just re-tested and it needs to be

<cfset needToLoad = LSParseDateTime(fuseboxFiles.dateLastModified) gt parseDateTime(this.timestamp) />

LSParseDateTime(this.timestamp) doesn't work :-S

Changed 2 years ago by scorfield

  • status changed from new to closed
  • resolution set to duplicate
  • milestone set to Fusebox 5.1

This is a duplicate of ticket 99 which is fixed in SVN and will be part of Fusebox 5.1.

Changed 2 months ago by airforce1

  • milestone deleted
Note: See TracTickets for help on using tickets.