Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Wordpress Post Dates



Threaded Mode | Print  

 Wordpress Post Dates (3 Replies, Read 1586 times)
studio57designs
Group: Member
Post Group: Newbie
Posts: 15
Status:
Hello,

I am making progress with an automated wordpress install.

But, when I try to replace the post dates with [[date_gmt]] all post dates show up as:  November 30, -0001

Code

INSERT INTO `[[dbprefix]]posts` VALUES(16, 4, '[[date_gmt]]',
'[[date_gmt]]', '<div class="one-fourth first
aside">\r\n<h4>SIDEBAR</h4>\r\nLorem ipsum dolor sit
amet, consec tetuer adipiscing elit, sed diam nonu mmy nibh euismod
tincidunt ut laoreet dolore magna
aliquam.\r\n\r\n</div>\r\n', 'Content Sidebar', '', 'publish', 'open', 'open', '', 'content-sidebar', '', '', '[[date_gmt]]', '[[date_gmt]]', '', 10, '[[softurl]]/?page_id=14', 0, 'page', '', 0);


Any idea what I might be doing wrong?

Thanks,
Louise
IP: --   

Wordpress Post Dates
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5664
Status:
Hi,

Sir please try [[regtime]] instead of [[date_gmt]]

Edited by Brijesh : February 24, 2013, 8:08 am

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Wordpress Post Dates
studio57designs
Group: Member
Post Group: Newbie
Posts: 15
Status:
Thanks, but [[regtime]] did not work either, same result.

Louise
IP: --   

Wordpress Post Dates
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5664
Status:
Hi,

Sir we use the following code to determine the date_gmt :
Code
date('Y-m-d H:i:s', max( 0, time() - date('Z', time()) ));


Please try to execute the above code on your server. This could be due to some timezone settings in your PHP.


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 22, 2024, 6:48 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.023