Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DateTime format for DetailViewer

    The display of a DateTime field shows only as a date in the DetailViewer and is not using our formatter.

    The field defined as:
    Code:
    <field name="sysCreatedOn" type="datetime">
    we set the DateTime display via
    Code:
    DateUtil.setNormalDatetimeDisplayFormatter(dateTimeDisplayFormatter);
    DateUtil.setShortDatetimeDisplayFormatter(dateTimeDisplayFormatter);
    where dateTimeDisplayFormatter is formatting the date via "yyyy-MM-dd HH:mm:ss Z"

    On forms the fields shows as: 2014-04-24 14:46:19 -0400

    And in the DetailViewer it shows as: 2014-04-24

    Any ideas why?

    #2
    I am looking at the same issue as well.
    The javadoc of the DetailViewer.setDatetimeFormatter() says that if it is not specified (as is the case) it should take the formatting from DateUtil.setNormalDatetimeDisplayFormatter()
    Clearly it doesn't. Instead it takes the formatter from DateUtil.setNormalDateDisplayFormatter() which leaves the time out of the string.
    Can you have a look at this?

    SmartClient Version: SNAPSHOT_v10.0d_2014-08-05/Pro Deployment (built 2014-08-05)
    Last edited by klevi; 13 Aug 2014, 01:03. Reason: Added SmartClient version.

    Comment


      #3
      I still have the same problem as well.

      SmartClient Version: v9.1p_2014-08-11/Pro Deployment (built 2014-08-11)

      Comment


        #4
        Just wondering if anyone has had a chance to look into this?

        Thanks.

        Comment


          #5
          We're actually looking at it even as we speak - we'll update later today

          Comment


            #6
            Thank You Kindly! Just wanted to make sure it wasn't lost which would be easy to do given all the requests you probably have to deal with.

            Comment


              #7
              We've made a change to address this - please retest with a build dated August 19 or later, and let us know if you still see issues.

              Comment


                #8
                After testing with a newer version everything seems fine.

                Comment


                  #9
                  Works great. Thanks.

                  Comment

                  Working...
                  X