Ticket #460: ticket460.patch

File ticket460.patch, 0.5 KB (added by jayfresh, 4 years ago)

Patch for ticket 460

  • Dates.js

     
    2626        t = t.replace(/0DD/g,String.zeroPad(this.getDate(),2)); 
    2727        t = t.replace(/DDth/g,this.getDate()+this.daySuffix()); 
    2828        t = t.replace(/DD/g,this.getDate()); 
     29        t = t.replace(/TZD/g,(this.getTimezoneOffset() < 0 ? '-' : '+') + (this.getTimezoneOffset() / 60 < 10 ? '0' : '') + (this.getTimezoneOffset() / 60) + (this.getTimezoneOffset() % 60 == 0 ? ':00' : ':30')); 
    2930        return t; 
    3031}; 
    3132