Hello!
Perhaps this is an easy answer that I’m just misunderstanding, but here goes anyways.
I’ve got a site that features an “event” system whereby I’m listing events by limiting my channel entries as follows:
{exp:channel:entries
channel="events"
disable="categories|category_fields|member_data|pagination"
limit=""
orderby="date"
sort="asc"
start_on="{current_time format='%Y-%m-%d %H:%i'}"
show_future_entries="yes"
}
---stuff---
{/exp:channel:entries}The idea is that for each entry, we use the entry date as the date of the event and then to make sure that it appears on the site for the entire day, we manually type in 11:59 PM. This kinda works, except that I noticed by chance recently that events were being dropped sooner than 11:59 PM.
After some investigation, I discovered that our server time (MediaTemple Grid Service) was actually about 9 hours ahead of where we were. To combat this, I’ve used both a php.ini file and .htaccess to set the server time to our closest actual region (America/Chicago). I’ve tested this by a PHP script that shows the correct date/time.
<?php
print strftime('%c');
?>However, when I attempt to check that EE is matching this, I am getting that same, old time that is 9 hours ahead:
{current_time format="%Y %m %d %H:%i:%s"}I first thought it might be browser cache playing into this, but alas I’ve checked multiple machines and browsers and it is still off. My EE localization settings are as follows:
Server Time Zone: (UTC -6:00) Central Standard Time
Server Offset (in minutes): 0
Default Time formatting: United States
Daylight Saving Time: Yes
Is there anything I can do to refresh or reset EE to match the server time?
EE v2.5.1 - Build Date: 20120529