Wrong month in quicktag.js only
-
Hi,
All the dates provided by WordPress are correct with the exception of the date created by thedatetime
variable of the<ins>
quicktag, which is one month early. For example, I got this when I added an insertion to a post on August 30th:
<ins title="Added at 2004-7-30 at 14:23:35-4:00" datetime="2004-7-30T14:23:35-4:00">
Note that I edited the<ins>
tag, as you can see, but I don’t think I changed anything that would affect this. The relevant lines from myquicktags.js
file are as follows:
var now = new Date();
var datetime = now.getFullYear() + '-' + now.getMonth() + '-' + now.getDate() + 'T' +
now.getHours() + ':' + now.getMinutes() + ':' +
now.getSeconds() + '-' + (now.getTimezoneOffset()/60)
+ ':' + '00';
Do others have this problem? Is there a way to fix it?
Thanks,
Strunk
- The topic ‘Wrong month in quicktag.js only’ is closed to new replies.