Home ›
Change the date of a node, using the databaseChange the date of a node, using the database
Submitted by freescholar on January 21, 2015 - 7:02pm
Change the date of a node, using the database. XYZ represents the node ID (NID)
cd /vagrant
drush sql-cli
update node set changed = 1450958544 where nid = XYZ;
update node set changed = 1451563344 where nid = XYZ;
This example sets the time for 2 nodes, the first to 47 weeks ahead and the second update line sets the timestamp 50 weeks ahead of todays date, 1/28/2015
Searched words:
Date time timestamp past
Comments
Post new comment