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

Date and Time Format Functions Not Parsing "Y" Year Mask

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.1.39
    • Labels:

      Description

      When using the DateFormat() and DateTimeFormat() functions (and their LS counterparts), a Year mask with a capital "Y" is ignored and simply passed through. ACF's Update 3 now allows for case-insensitive masking in DateFormat(). The interpretation of "Y" (week year) vs "y" (calendar year) is a different discussion, but "Y" (and other upper-case letters) should still be a valid mask.

      Lucee 4.5 >> http://trycf.com/gist/7788cd805e46899a682b81bcc14c9e4f/lucee?theme=monokai

      Lucee 5 >> http://trycf.com/gist/5a06e0309a37057dcb1ed78b88be87db/lucee5?theme=monokai

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              codefumonkey Shawn Oden
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: