ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

entry displaying incorrect entry/expiration date on details page, but correct on event listing page, localization problem?

August 16, 2010 2:50pm

Subscribe [3]
  • #1 / Aug 16, 2010 2:50pm

    Brad Morse

    428 posts

    Problem with entry titled: “Monroe Community College SUNY Night” on http://www.herkimer.edu/admissions/road/ - it displays the correct time, 6 - 8:30pm, click on the link and it takes you here: http://www.herkimer.edu/admissions/view/monroe_community_college_suny_night/ - it displays the time as 5:59 - 8:29pm

    Here is what it looks like in the control panel http://cl.ly/a6e04a857b6fd84849c9

    The author’s localization setting is as followed: http://cl.ly/8e475a42a053e0049505

    Logged in as the author of the entry: http://cl.ly/ca00c5ae93c708b8842a

    Not sure why it is an hour behind for them, but not my super admin account, and also unsure why it displays appropriately on the main page (http://www.herkimer.edu/admissions/road/) and not on the details page(http://www.herkimer.edu/admissions/view/monroe_community_college_suny_night/).

    Code for main page:

    {exp:weblog:entries 
      weblog="admissions_calendar" 
      show_future_entries="yes" 
      category="{embed:calendar_category_id}" 
      orderby="entry_date" 
      sort="asc"
      start_on="{current_time format='%Y-%m-%d %H:%i'}"
      disable="category_fields|member_data|pagination|trackbacks" 
      refresh="15" 
      cache="yes"
    }
    {if count==1}<h2>{embed:road_calendar_title}</h2><p>{/if}<br />
    <div class="article {switch="odd|even"}"><br />
        {if calendar_image != ''}<a href="http://{title_permalink=/{segment_1}/view/}" title="{title}">{exp:imgsizer:size image="{calendar_image}" alt="{title}" width="100px"}</a>{/if}<br />
        <strong>{title}</strong><br />
        <br />
    {entry_date format="%F %d, %Y"} at {entry_date format="%g:%i%a"}{if expiration_date} - {expiration_date format="%g:%i%a"}{/if}<br />
        <br />
    {calendar_location}<br />
        <a href="http://{title_permalink=/{segment_1}/view/}" title="{title}">view details</a><br />
    </div><br />
    {/exp:weblog:entries}

    Code for detail of entry

    {exp:weblog:entries 
      weblog="{my_weblog}" 
      show_future_entries="yes"
      show_expired="yes"
      limit="1" 
      status="open|homepage"
        cache="yes"
        refresh="15"
    }
        <h1>{title}</h1>
        {addthis_button}
        {entry_date format="%F %d, %Y"} at {entry_date format="%g:%i%a"}{if expiration_date} - {expiration_date format="%g:%i%a"}{/if}
        Location: {recruiter_schedule_where}
        
        {recruiter_schedule_description}
        
        {recruiter_calendar_images}
      {if {row_count}=='1'}<a href="http://{file}" title="{caption}" class="thickbox">{exp:imgsizer:size image="{file}" alt="{caption}" height="200px" class="img-content"}</a>{/if}
      {/recruiter_calendar_images}
    
        {if recruiter_schedule_contact}<strong>For more information, please contact:</strong> {recruiter_schedule_contact}{/if}
        
        {categories}{if category_id == "17"}<div class="program-register"><a href="/{segment_1}/spd-register" title="Register for {title}">Register for this event!</a></div>{/if}{/categories}
        <a href="/{segment_1}/calendar/" title="view all">view all</a>
    {/exp:weblog:entries}

    v1.6.9 20100415

    Time zone: Eastern (NY)

  • #2 / Aug 16, 2010 4:30pm

    Wouter Vervloet

    758 posts

    Took a quick look at the site and both the pages display the same time (6:00pm - 8:30pm).

    Maybe it has something to do with DST settings?

  • #3 / Aug 16, 2010 4:33pm

    Brad Morse

    428 posts

    I went into the main localization settings and set it (http://ellislab.com/expressionengine/user-guide/cp/admin/system_admin/localization_settings.html) and disabled members from setting their localization settings, as well as going with my localization setting as the master one.

    Think that did the trick, Thanks Wouter.

  • #4 / Aug 16, 2010 4:55pm

    Wouter Vervloet

    758 posts

    You’re welcome Brad.

    Greetz,
    Wouter

  • #5 / Aug 16, 2010 5:10pm

    Ingmar

    29245 posts

    Thanks for the assist, and glad to see you’re all set. Please post agas as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases