Changeset 56

Show
Ignore:
Timestamp:
04/04/06 21:15:40 (3 years ago)
Author:
Jan-Klaas Kollhof
Message:

added milliseconds to date serialization in xmlrpc module

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jsolait/lib/xmlrpc.js

    r45 r56  
    793793        var min = padd(this.getUTCMinutes(), "00"); 
    794794        var s = padd(this.getUTCSeconds(), "00"); 
    795  
    796         var isodate = y +  m  + d + "T" + h +  ":" + min + ":" + s; 
     795        //Alex suggested to add milliseconds support and send me a patch 
     796        //Thanks for the great effort, Alex. 
     797        var ms = padd(this.getUTCMilliseconds(), "000"); 
     798 
     799        var isodate = y +  m  + d + "T" + h +  ":" + min + ":" + s + ":" + ms; 
    797800 
    798801        return "<dateTime.iso8601>" + isodate + "</dateTime.iso8601>";