* @param {Date} date target date
* @return {int} UTC timestamp in seconds
*/
- gmdate: function(data) {
+ gmdate: function(date) {
if (!(date instanceof Date)) {
date = new Date();
}
/**
* Returns a Date object with precise offset (including timezone and local timezone).
*
- * @param {int} timestamp timestamp in miliseconds
- * @param {int} offset timezone offset in miliseconds
+ * @param {int} timestamp timestamp in milliseconds
+ * @param {int} offset timezone offset in milliseconds
* @return {Date} localized date
*/
getTimezoneDate: function(timestamp, offset) {