Hi, wondering how I change the date wordpress thinks today is.. where does it pull the time and day from and is it possible to change that to say 2010 instead of 09
A:
WordPress uses the server's time setting. You can conceivably set the server's date to a different one, but it'll affect everything - MySQL, other apps and sites on the same server, etc.
Why would you want to do this?
ceejayoz
2009-07-28 20:15:07
A:
I think you're going to have to hack core files in Wordpress in order to "add" a year to the system time. Wordpress grabs the current date and time from the server it's on, and unless you run your own web server, it's doubtful you can change that. That said, you could write a function that adds a year to the "current" date within wordpress.
songdogtech
2009-07-28 20:15:38
Not a major php buff any ideas how I would go about that.
newhen
2009-07-28 20:36:20
Look for wherever it uses `date()`, `time()`, `gmtime()`, `gmdate()` and tweak from there.
ceejayoz
2009-07-28 20:44:20
You can't set a future date using the interface, because that is not how it was built. If you want to make it show futures posts, you need to go in an edit the template/core wp files.
Chacha102
2009-07-28 22:47:04