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.