Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1459 Smart-update supports the Date object

5.0.5
closed
nobody
5
2010-10-27
2010-10-27
Tom M. Yeh
No

For example,
smartUpdate("foo", new Date());

Notice that the time zone might be different at the client and at the server. As a Web application, it is better not to let the user aware this. In other words, it is better to depend on TimeZones.getCurrent() (at sever-side). Instead of passing the time zone to the client, we could send a string instead. For example, passing in the format of yyyy.M.d.H.m.s.S, and then convert to Date at client. Then, we send back to the server and we can have the same value regardless the difference of timezones.

Discussion

  • Tom M. Yeh
    Tom M. Yeh
    2010-10-27

    • status: open --> closed
     
  • Tom M. Yeh
    Tom M. Yeh
    2010-10-27

    Ready since 10/27
    --
    Both smart-update and renderer support Date. Notice that it is converted to a string (rather than long) and then convert back to Date, as described in the feature request.