WordPress: Time and Date Wrong on All Posts or in Drafts

Friday, 24. June 2011

Problem: WordPress is showing the wrong date and time on published posts and in the “Posts” list inside wp-admin.

Cause: UTC times are incorrectly set, or the server time is wrong.

Solution: Verify the timezone settings in WordPress. This is under Settings> General. You will specify your UTC time.
Eg: Pacific Standard Time is UTC-8. (Meaning: UTC time subtract eight hours)

If you do not know your UTC time, check out the chart on the bottom of this page:
http://www.scc-ares-races.org/utcchart.html

If this is not the problem, you need to check the local date and time on your server.
If you have a hosting provider, you may need to contact them if you suspect the time is wrong on their servers, however this is unlikely since hosting companies are usually very careful about these thing. Wrong date and times actually cause a huge amount of problems communicating securely over the Internet.

If it is your own server, research changing the time in your native operating system.

 

Did this help you? Let us know, and others, by commenting below.

Enhanced by Zemanta

WordPress: Page Not Found on Permalink

Sunday, 26. September 2010

Remember: Please write in the comments area whether or not you had success with this solution, and share other ideas.

Issue: When clicking on “Older Posts” which brings you to the URL “page 2” (page2), you get a 404 error page.

Problem: Apache mod_rewrite is disabled –or– “AllowOverride” is set to “none” in your Apache configuration file for the virtual server.

Solution: In my case, the problem was with AllowOverride being set to none.

Simply look though your Apache configuration file, and change “none” to “all” for AllowOverride.

Here is an example of what this should look like:
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

WARNING: You should only change AllowOverride to all for the web directory. (Exclude all other items, such as CGI or usr/share/doc). Leave these alone!

Solution 2: This second option works, but does not fix the underlying problem.
Go to your Permalinks settings page in WordPress. Under “Custom Structure”, add /index.php before the line.
Eg:
/%year%/%monthnum%/%day%/%postname%/
should look like this:
/index.php/%year%/%monthnum%/%day%/%postname%/

All links will go through index.php. If you change these links back to not having index.php, they will still redirect properly.

Solution 3: Go without custom permalinks structures.
The disadvantage is that Google doesn’t like these, since the actual link tells Google nothing about the page. For higher ranks in searches, you should avoid this.
Simply go to the Permalinks settings page in WordPress, click “Default” and save changes.

A general reminder: It’s usually a bad idea to constantly switch permalinks. It places you farther behind in Google because your links are always becoming broken. Choose a structure, and stick with it!