Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
HI,

I have created some posts with a future date on them, so that they don't go live right away.
My issue is, that when testing today - I chose the time 1 hour ahead, but it posted it live straight away.

Can I only schedule posts for the day and not for a specific time of day?

Thanks
Andy
Hi Andy,

You said -
I chose the time 1 hour ahead, but it posted it live straight away.
If you had chosen a time 1 hour into the future, that is when the post should have gone live.
I guess you have not set your time zone (in config.php) and so there is a discrepancy between your local machine and the server's time.
Please set the the right timezone to rectify this problem.
Can I only schedule posts for the day and not for a specific time of day?
Yes, you certainly can - right up to the minute. The problem, as mentioned above, could be the timezone not being correctly set.

Hope this helps.
Thanks for this - I m=overlooked that!
It did bring up a problem though - due to British summer time!!
But i found this resource which sorted the problem:

Changing this:

define( 'K_GMT_OFFSET', +0 );

to:

date_default_timezone_set( 'Europe/London' );

if( date('I') ){
// DST in effect
define( 'K_GMT_OFFSET', +1 );
}
else{
define( 'K_GMT_OFFSET', +0 );
}


Thanks again though for putting me on the right track!!

Andy
3 posts Page 1 of 1