This method is to use an int offset to adjust the timestamp, without a locale or timezone. That's it. No hidden meanings here. It uses Integer instead of int since Freemarker doesn't wrap primitives.

On Oct 25, 2007, at 7:05 PM, Adrian Crum wrote:

Andrew Zeneski wrote:
The predicted results will be a timestamp adjusted with with the specific amount specified, without a timezone available. Just a helper method. I used it on a system which is set to GMT and requires dates be displayed in the customer facing in the customer's timezone. The timezone is read as an offset (in javascript) and then adjusted on the fly as needed. There is no TimeZone object available, all we know is how many minutes off GMT.
Andrew

The commit log mentions calling this from Freemarker. There are Locale and TimeZone objects in the Freemarker context. In addition, I'm pretty sure that no matter where you are in the code execution path, you have access to Locale and TimeZone objects.

-Adrian



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to