Announcement

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

  • New Java LocalDateTime doesn't convert with toJS function into JavaScript date

    We are tying to upgrade our Java codebase to use the latest Java time classes, but I found the SmartClient toJS() function doesn't create a javascript date object. Do the newer versions of SmartClient support this? We are currently running v9.1p_2016-08-30/Pro Development Only (built 2016-08-30).

    Using Java.util.Date:

    Code:
    completedDate: new Date(1516057395000)
    Using Java.time.LocalDateTime:

    Code:
    completedDate:{
                dayOfWeek:"FRIDAY",
                hour:16,
                month:"FEBRUARY",
                dayOfMonth:23,
                dayOfYear:54,
                year:2018,
                monthValue:2,
                nano:0,
                minute:2,
                second:47
            }

  • #2
    Any updates on this?

    Comment


    • #3
      We plan to add official support for this (we already support the similar Jodatime classes that clearly inspired the new JDK classes). In the meantime, we recommend converting such classes to Date instances.

      Comment

      Working...
      X