This is odd, but for some reason all the dates (in the Modified date column) are a month off -- the stuff I worked on or created today all say March 24, and the stuff from yesterday says March 23, and so on. I don't know if this is a nodeadmin problem -- how can I figure that out? The only indication I have is that when I look in the regular content editor, the date in the Authoring information field is correct.
Thank you!
Comments
Comment #1
lance.gliser commentedThe problem is the javascript output only. The php is correct.
The problem is the in nodeadmin.js on line 62:
The problem is that javascript's .getMonth command believes January to be 0, not 1.
There are two remedies.
Psuedo code:
Personally, I'm going to adopt the first. It's faster, and we don't need the names. But I'll leave that up to Detour's next release.
Comment #2
lance.gliser commentedDetour, just a thought, but maybe it would better if you left the date parsing out of the javascript entirely?
Having it format the date server side would keep things accurate, and allow others to modify if desired.
For simplicity, I'm going to define a global variable: NODE_ADMIN_DATE_FORMAT with your current custom date string. But it could easily be stored in a drupal_variable.
In nodeadmin.module around line 300, insert:
Update line 130ish (sorry, I'm adding code so mine doesn't match yours exactly anymore) to:
'data' => $node->formattedDate,
In nodeadmin.js around line 61, remove:
Update line 64ish to:
tableBody.append( ...
');
Comment #3
tuffnatty commentedsubscribing