Announcement

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

    ListGrid -> DataSourceDateField -> Date value incorrect

    Dear SmartGWT users,
    please help me with my problem.

    I have ListGrid which have set RestDataSource. This data source contains DataSourceDateField named creationDate.

    In the database value of the creationDate is set to 2009-03-17 14:21:39. In the JSON string received from server value of the creationDate is set to 2009-03-17T14:21:39. This is OK. But when ListGrid is displayed then value of the creationDate is set to 2009-03-17 15:21:39 which is not correct value.

    It seems for me that there is some time zone logic behind the scene. I am in the time zone Europe/Prague (+1, DST +2). I could not find any relevant informations about this behaviour in the docs. Any clue how to display date in the ListGrid without the time zone offset?

    Best regards,

    Ales

    #2
    I believe the timezone needs to be GMT

    Comment


      #3
      Thanks for your reply. So if I understand correctly SmartGWT expects date in GMT and sends date in GMT. If date in the database is not in the GMT conversion is required. It will be useful if this information will be somewhere in the JavaDoc (or I overlooked it).

      Best regards,

      Ales

      Comment

      Working...
      X