We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Entries restricted by date showing up incorrectly

Development and Programming

acentofante's avatar
acentofante
4 posts
13 years ago
acentofante's avatar acentofante

I have a channel for events that has date fields. I am calling these entries and restricting them to the specific dates to make a schedule. The only problem is one if them is showing up in the wrong spot.

{current_time format="%F %d %g:%i %a %Q"}

<h2>April 12</h2>
{exp:channel:entries channel="events" show_future_entries="yes" order_by="date" sort="asc" year="2013" month="4" day="12"}
{event_date format="%F %d %g:%i %a"} - {title}<br>
{/exp:channel:entries}

<h2>April 13</h2>
{exp:channel:entries channel="events" show_future_entries="yes" order_by="date" sort="asc" year="2013" month="4" day="13"}
{event_date format="%F %d %g:%i %a"} - {title}<br>
{/exp:channel:entries}

Result: http://www.tomtomfest.com/site/time_error

or

February 13 6:44 pm -05:00 April 12 April 12 8:00 am - DESIGN MARATHON April 12 4:00 pm - MCGUFFEY BLOCK PARTY April 12 4:30 pm - A TOM TOM DEBATE – Aspen v Austin v Arlington April 13 April 12 9:00 pm - SCHOOL HOUSE ROCK: After Hours at McGuffey April 13 7:00 am - TOM YUM: Field to Fork Expo April 13 7:00 am - CITY CANVAS: Downtown Block Party April 13 12:00 pm - PICNIC DAY IN LEE PARK - A Garage Concert Event & Jazz on the Library Steps April 13 12:00 pm - GALLERY WALK: Piedmont Council for the Arts April 13 1:59 pm - TOM TALKS I - Education, Technology, Entrepreneurship & Leadership

I added the current time for some reference, as I am on EST and the server is set to GMT. I think it has something to do with time zones as for me the offset is -5:00 and if I adjust the time of the event to 6:59pm it will move to the correct day, 7pm will go to the wrong day. (6:69pm+5:00=11:59pm vs 7:00pm+5:00=12:00am)

Any ideas?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.