Uploaded image for project: 'Lucee Development'
  1. LDEV-2131

ParseDateTime, add predefined mask shortcut for javascript style ISO date strings

    Details

    • Type: Enhancement
    • Status: New
    • Priority: New
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None
    • Sprint:

      Description

      Lucee has built in support for iso8601 style dates, i.e. yyyy-MM-dd'T'HH:mm:ssZ

      https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/functions/displayFormatting/DateTimeFormat.java#L94

      these differ from slightly for the format used in javascript, which is "yyyy-MM-dd'T'HH:mm:ss.SSSZ"

      new Date().toISOString()
      "2019-01-07T15:10:54.548Z"
      

      as most Lucee developers are working with javascript, this would be rather useful

      there is some discussion about this here
      https://murrayhopkins.wordpress.com/2018/10/08/coldfusion-10-iso-8601-dates-and-bugs/

        Attachments

          Activity

            People

            • Assignee:
              21solutions Igal Sapir
              Reporter:
              zac.spitzer Zac Spitzer
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: