diff --git a/source/Ox/js/Date.js b/source/Ox/js/Date.js index a56fd337..7edddafb 100644 --- a/source/Ox/js/Date.js +++ b/source/Ox/js/Date.js @@ -179,10 +179,9 @@ Ox.getISOYear = function(date, utc) { //@ Ox.getSeconds Get the seconds of a date // see Ox.setSeconds for source code -//@ Ox.getTime Alias for +new Date() (deprecated) -Ox.getTime = function() { - // fixme: needed? - return +new Date(); +//@ Ox.getTime Alias for +new Date() +Ox.getTime = function(utc) { + return +new Date() - (utc ? Ox.getTimezoneOffset() : 0); }; /*@