summaryrefslogtreecommitdiff
path: root/jsonrpc/jsondate.esp
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc/jsondate.esp')
-rw-r--r--jsonrpc/jsondate.esp6
1 files changed, 3 insertions, 3 deletions
diff --git a/jsonrpc/jsondate.esp b/jsonrpc/jsondate.esp
index af2c7e2e3f..b2f2b9ec11 100644
--- a/jsonrpc/jsondate.esp
+++ b/jsonrpc/jsondate.esp
@@ -78,7 +78,7 @@ function _JSON_Date_create(secondsSinceEpoch)
if (typeof(secondsSinceEpoch) != "number")
{
- var currentTime = getTimeOfDay();
+ var currentTime = gettimeofday();
secondsSinceEpoch = currentTime.sec;
microseconds = currentTime.usec;
}
@@ -105,7 +105,7 @@ function _JSON_Date_create(secondsSinceEpoch)
{
return this.month;
}
- o.getUtcMonth = getUtcMonth;
+ o.getUtcMonth = _getUtcMonth;
function _getUtcDay()
{
@@ -167,7 +167,7 @@ function _JSON_Date_create(secondsSinceEpoch)
if (! secondsSinceEpoch)
{
- var now = getTimeOfDay();
+ var now = gettimeofday();
o.setEpochTime(now.sec);
}
else