Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2258

lSParseDateTime not working as documented with English(Australian) Locale.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.2.002
    • Fix Version/s: 4.1.0.002, 4.0.3.003
    • Labels:
      None

      Description

      Its an easy out to blame Java for a poor implementation of lsparsedatetime.

      If I have the code
      <cfset oldlocal=setlocale('English (Australian)')>
      <cfset fred=lsparsedatetime('20/12/2012 15:36:01')> <!--- This is a valid australian date value in the standard australia (24 hour) format) --->

      Then railo says it cant cast it to a date time format, and yet the documentation says
      "LSParseDateTime Converts a string that is a valid date/time representation in the current locale into a date/time object. "

      So the bug is that the code does not perform like it says on the tin.
      Furthermore it does not work with the standard syntax,.

      Evidently it has been like this for some time.

      Please stop ducking the issue and fix it.

      Code that works:
      lsparsedatetime(fieldvalue,'English (Australian)','Australia/Sydney','dd/MM/yyyy HH:mm:ss')

      I'm sorry but I don't see the joke, since the Adobe implementation will work with the first version. I don't appreciate having to recode all of this because Railo decided to go one better than adobe.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                bryn.parrott Bryn Parrott
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: