[Helma-user] Suggestion: Date.js - toUtc - return this

Kris Leite kleite at imcsoftware.com
Thu Oct 25 19:22:47 CEST 2007


I would like to suggest that in the Date.js file, the prototype method 
called toUtc, add the line 'return this;' so that it can be chained.  
For example:

var zt = (new Date()).toUtc().format(Date.ISOFORMAT);

I noticed that toLocalTime would also benefit from the same enhancement.

Thanks,
Kris



More information about the Helma-user mailing list