[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 78717] Date.UTC and Date.setUTC* produce incorrect time
From:       "M.Olson" <eval () oceanconsulting ! com>
Date:       2004-06-01 17:04:28
Message-ID: 20040601170428.16368.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=78717      




------- Additional Comments From eval oceanconsulting com  2004-06-01 19:04 -------
Another example:

<script language="JavaScript">
                                                                                      \
 var rawstartTime = '<!--#config timefmt="%c" --><!--#echo var="DATE_LOCAL" -->';
var startTime = Date.parse(rawstartTime);
                                                                                      \
  function nextTick()
                                                                                      \
  {
                                                                                      \
  startTime += 1000;
   nisttime = new Date(startTime);
   utcTime = nisttime.toUTCString();
   localeTime = nisttime.toLocaleString();
   gmtTime = nisttime.toGMTString();
   self.status = 'UTC(NIST) Time: ' + nisttime;
                                                                                      \
  window.setTimeout( "nextTick()", 1000 );
                                                                                      \
  }
                                                                                      \
  nextTick();
</script>

To see in action go to:

http://www.oceanconsulting.com/

and look at the status bar.  Works correctly in both IE and Mozilla.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic