server-time-iso fix
authorDarren <darren@darrenwhitlen.com>
Fri, 15 Nov 2013 11:09:23 +0000 (11:09 +0000)
committerDarren <darren@darrenwhitlen.com>
Fri, 15 Nov 2013 11:09:23 +0000 (11:09 +0000)
server/irc/commands.js

index 3882d3da5781802dea54a41c5f5223c7f83c37cd..f951dfa16510866d2debb4b27c6817c3f26c1bbe 100644 (file)
@@ -1017,7 +1017,7 @@ function getServerTime(command) {
         // Convert the time value to a unixtimestamp
         if (typeof time === 'string') {
             if (time.indexOf('T') > -1) {
-                time = parseISO8601(opts.time);
+                time = parseISO8601(time);
 
             } else if(time.match(/^[0-9.]+$/)) {
                 // A string formatted unix timestamp