1 of 2
1
DSt and Custom Fields
Posted: 06 October 2009 05:10 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi,

I am still trying to sort out this whole DST thing, some progress has been made but I’m still not there.

I am generating a VCS file so people can import events into Outlook etc. I have now used the gmt_entry_date for the start date and it seems to be working ok, I am currently in DST so when I post a new event the entry_date time stamp in the database is 1 hour behind what I entered and gets imported to outlook correctly.

For the end date I am using a custom date field set to localized, this is where I’m loosing it because the timestamp for this field in the databases shows as being 2 hours behind what was entered when the event was posted to the weblog.

One plan would be to just add an hour to this timestamp but I’m not sure how this could affect things in the future.

And advice here would be much appreciated.

EE 1.6.8

Thanks
Matt

Profile
 
 
Posted: 06 October 2009 07:02 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20997
Joined  04-29-2002

worldig, DST settings can be confusing.

What I usually do is to uncheck DST Active on Date of Entry.

If you do that, what happens?

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 06 October 2009 08:26 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi as far as I can see its never ticked anyway, if i make a post the entry date seems to be entered in the database as 1 hour behind which I would expect but the DST setting is always set to ‘n’.

Toggling the DST setting under options does not seem to do much apart from update the field in the db to ‘y’.

Its the custom date field that seems to be out if I enter say 12:00PM then convert the time stamp entered in the db it would be 10:00AM where I would expect it to be 11:00AM which would make it GMT and in line with the entry date.

Profile
 
 
Posted: 06 October 2009 09:57 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20997
Joined  04-29-2002

What’s the value of Default timezone in your PHP Info settings?

I’m going to be testing this behavior on my server where I’m in the same time zone as the server. What about you? How do your settings compare to the server?

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 07 October 2009 08:01 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi,
In my php: Default timezone   Europe/London
My laptop is also in the same timezone.

It seems weird that its ok with the entry_date but not with the custom date field

Profile
 
 
Posted: 07 October 2009 08:36 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20997
Joined  04-29-2002

I see what you mean. I’ll check with the dev team and see what I can find out.

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 07 October 2009 07:29 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25619
Joined  05-20-2002

The date entered into the db for both the entry_date and the custom field date should be gmt in both cases.  From there- the various settings influence how the date will be displayed. 

If I understand correctly- try putting the custom field in as ‘fixed’ to the actual date you want it-.  It shouldn’t vary, shouldn’t be localized.  I think that’s what you’re going for.

Unless the problem is actually the dates as entered into the db.  I THINK what you’re running into is a presentation/localization issue, though.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 12 October 2009 08:19 AM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi,

If I set the custom field to fixed the timestamp in the db is still 2 hours behind what is entered in the weblog field at publish time.

Taking a look at some articles that were entered when dst was not active the timestamps for these seem to be 1 hour behind what was entered which would make them GMT-1 which also seems a bit strange.

It seems consistent so I can just add 1 hour to the timestamp when I pull it from the db but it doesn’t seem correct :s

Thanks
Matt

Profile
 
 
Posted: 12 October 2009 11:51 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29187
Joined  05-15-2004

How do you enter these dates? Via the control panel? Which user does it, does he have localization set?

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
Posted: 14 October 2009 08:24 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi,

I am logged in as the admin user, super admins group, local settings are set to GMT for this user.

Yes the dates are being entered through a custom date field in the control panel.

Thanks
Matt

Image Attachments
Screen shot 2009-10-14 at 14.22.10.png
Click thumbnail to see full-size image
Profile
 
 
Posted: 14 October 2009 09:12 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25619
Joined  05-20-2002

Sorry this is dragging out, Matt.  Fixed time isn’t acting quite as I’d expect it to- so I’m doing some poking.  Oh- and just so I’m dead sure what’s up- all the dates we’re talking about are being parsed via a weblog tag- and date formatted.  You’re not pulling directly from the db.  Correct?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 20 October 2009 04:42 AM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi sorry for the late reply here,

Yes they are being pulled with a weblog tag from a custom date field.

{entry_date} is ok the timestamp is always GMT

{custom_date} is not and in the db the timestamp always translates to 2 hours behind what was entered so essentially GMT-1

Thanks
Matt

Profile
 
 
Posted: 21 October 2009 10:02 AM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25619
Joined  05-20-2002

Bleh-  ok, even if ‘fixed’, the date fields will vary based on DST settings- which is what I suspect you’re seeing. 

What do your date tags look like- entry date and the custom field (i.e. when used on the templates).

And the goal is- to have a date that doesn’t vary irregardless of server DST and individual localization?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 28 October 2009 06:27 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi,

Tags Below:

{gmt_entry_date format="%Y%m%dT%H%i%sZ"}
{event_end_date format
="%Y%m%dT%H%i%sZ"}

That’s how they are in the template now anyway I’ve tried so many different ways no I loose track.

Ideally I would just like it to display GMT+0 all the time.

Thanks
Matt

Profile
 
 
Posted: 09 November 2009 12:29 PM   [ Ignore ]   [ # 14 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40202
Joined  05-14-2004

Hi, Matt,

I apologize for the delay on this one.  It is something we are working on internally but may take some time for us to work through.  I thank you for your patience and we’ll follow up with you as soon as we have more information.

 Signature 
Profile
MSG
 
 
Posted: 09 November 2009 02:13 PM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  520
Joined  01-25-2006

Just had a situation tonight where a calendar entry is showing different dates to different people because of the localisation and the entry time (just past midnight!) and am working through that right now so I am looking forward to the reply from Lisa and crew as well.

 Signature 

“All men are equal. All men, that is, who possess umbrellas.” E.M. Forster 

Artscape and Santaballs
Chris O’Donoghue Chelsea Garden Designer
The Greenwich and District Narrow Gauge Railway Society
Croydon RFC

Profile
 
 
Posted: 25 November 2009 05:20 AM   [ Ignore ]   [ # 16 ]  
Grad Student
Rank
Total Posts:  47
Joined  07-31-2008

Hi,

Just wondering if there’s any more info on this yet?

Thanks
Matt

Profile
 
 
Posted: 25 November 2009 08:33 AM   [ Ignore ]   [ # 17 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20997
Joined  04-29-2002

Hi, Matt. I apologize for the time it’s taken to get back to you. Our development team is less than a week away from launching EE2.0RC. I’ll go ask, and let you know what I find out. Thanks in advance for your patience.

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 25 November 2009 11:21 AM   [ Ignore ]   [ # 18 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40202
Joined  05-14-2004

Hi, Matt - as Sue said, our development is hard at work to be ready by December 1st.  I know that this has also been worked on and we’ll have more information for you as soon as possible, but may not be before early next week.

My apologies for the delay on this.

 Signature 
Profile
MSG
 
 
   
1 of 2
1
 
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 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120314 Total Logged-in Users: 88
Total Topics: 126432 Total Anonymous Users: 43
Total Replies: 664869 Total Guests: 396
Total Posts: 791301    
Members ( View Memberlist )