The post times for users with adminster nodes permission are a bit weird. Basically there must be a $node->date set. If it isn't, some arbiterary time (14 hours ago for me) seems to be picked.

This patch sets that date.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

FileSize
807 bytes

Here is the correct patchfile.

drumm’s picture

FileSize
1.02 KB

Really the correct patchfile now.

Dries’s picture

Looks weird.

James/walkah: can you review this patch?

sugree’s picture

I am also getting this weird problem with Post2Blog. This patch helps me from the hell.

drumm’s picture

Status: Needs review » Reviewed & tested by the community
Dries’s picture

Isn't node_validate() supposed to generate an error?

Also, why do you need to be an admin to set the date of a new post?

drumm’s picture

For non-admins the date is always set properly since they don't have access to do anything else.

For admins, node_submit() needs a date since admins have access to set them.

drumm’s picture

FileSize
1.03 KB

Sync with HEAD.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Dries’s picture

Status: Fixed » Closed (fixed)