Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#8 | blogapi.module_4.diff | 1.03 KB | drumm |
#2 | blogapi.module_2.diff | 1.02 KB | drumm |
#1 | blogapi.module_1.diff | 807 bytes | drumm |
blogapi.module_0.diff | 807 bytes | drumm | |
Comments
Comment #1
drummHere is the correct patchfile.
Comment #2
drummReally the correct patchfile now.
Comment #3
Dries CreditAttribution: Dries commentedLooks weird.
James/walkah: can you review this patch?
Comment #4
sugree CreditAttribution: sugree commentedI am also getting this weird problem with Post2Blog. This patch helps me from the hell.
Comment #5
drummComment #6
Dries CreditAttribution: Dries commentedIsn'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?
Comment #7
drummFor 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.
Comment #8
drummSync with HEAD.
Comment #9
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #10
Dries CreditAttribution: Dries commented