[wp-trac] [WordPress Trac] #46609: Incorrect posts date on saving scheduled posts draft
WordPress Trac
noreply at wordpress.org
Fri May 24 12:36:26 UTC 2019
#46609: Incorrect posts date on saving scheduled posts draft
-------------------------------+------------------------------
Reporter: Marlimant | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 5.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by Marlimant):
Well, the preview name is clear "pre-view", and the date is an important
part of the post content, especially in a newspaper page, for example. In
my case, I need to print a PDF version of the post before it be published,
to then, I need to put a link to the user, who will can download the print
version of the file later, when the post was published.
In that case, the saved preview version must show the established date to
the post (for example, 20 minutes or 2 days forward), and not the date
when the post was saved, which is irrelevant.
The date code of my page is (my page is in spanish)
{{{#!php
<?php the_time('j \d\e\ F \d\e\ Y \|\ G:i a'); ?>
}}}
but the same occur with a native theme using:
{{{#!php
twentyseventeen_time_link()
}}}
I don't know if that codes was the culprits. I only have tested that codes
with the same results. I wrote here just to see if you find the solution.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46609#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list