wacky date issue
Posted: 25 June 2008 05:49 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  484
Joined  01-23-2006

I’m having the entry date for an event show us as exactly four days early on one template of my site and correct on another.

I have been playing with all the settings and thought I had it right until I discovered this discrepency.

The server is enginehosting (central) and the members are eastern.  I’ve taken DST out of the situation and messed with all the settings server and member localization.

I can’t understand why the date would display differently on two different templates.

Here are my entry tags:

The one showing up four days earlier:

{exp:weblog:entries weblog="activities" status="Home" show_future_entries="yes" limit="3" disable="category_fields|member_data|pagination|trackbacks"}


  
<h5>{title} </h5>
  <
p>{entry_date format="%n/%g/%y  %g:%i %a"}<br />
  
{exp:word_limit total="10"}{if activity-summary}{activity-summary} {if:else}{activity-description} {/if}{/exp:word_limit}<a href="{url_title_path=activities/events-detail}" title="Event Details">More Information..</a></p>
{/exp:weblog:entries}

The other correct one: 

{exp:weblog:entries weblog="activities" show_future_entries="yes" status="not closed" limit="10" disable="category_fields|member_data|pagination|trackbacks"}

{date_heading display
="monthly"}

<h2>{entry_date format="%F %Y"}</h2>

{/date_heading}

<h3>{title}</h3>

<
p>{entry_date format="%F %d %Y / %g:%i %a"}{if activity-end} - {activity-end format="%g:%i %a"}{/if}</p>

{if activity-thumb}<div class="photo-left">{activity-thumb}</div>{/if}

{if activity
-summary}{activity-summary} {if:else}{exp:word_limit total="20"}{activity-description}{/exp:word_limit} {/if}

<p><a href="{url_title_path=activities/events-detail}">Read More &#187;</a> </p>

{/exp:weblog:entries}


Any ideas?

Thanks

Profile
 
 
Posted: 25 June 2008 07:48 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

I noticed on your first code example you are referencing time for day, was this intended?

<p>{entry_date format="%n/%g/%y  %g:%i %a"}<br />


instead of

<p>{entry_date format="%n/%d/%y  %g:%i %a"}<br />

Profile
 
 
Posted: 26 June 2008 08:06 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  484
Joined  01-23-2006

Duh.  Thanks so much for catching that for me Justin.

Profile
 
 
Posted: 26 June 2008 08:40 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

wink  He has sharp eyes!  We good to close this one out?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 26 June 2008 09:12 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  484
Joined  01-23-2006

Yes, please.

Profile
 
 
Posted: 26 June 2008 09:33 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

Is done!

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64909 Total Logged-in Users: 40
Total Topics: 81855 Total Anonymous Users: 26
Total Replies: 440069 Total Guests: 227
Total Posts: 521924    
Members ( View Memberlist )