New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Time Zones and Daylights savingsTime Zones and Daylights savings
New Post
2/3/2007 12:38 AM
Ok, here's my issue. I can't find anything that explains how DNN deals with daylight savings time. Also I can't see where the time zone offsets are stored. They aren't in the DB, you'd think they'd be under lists but they aren't. The time zone editor lets me change the names of an offset but doesn't let me change what the offset is. If anyone can provide guidence on this I'd appreciate it. I've got a person who says they'd rather not do DNN because of the Time zones and daylight saving stuff.
New Post
2/3/2007 6:36 AM

at the moment DNN does not do anything with daylight savings. That would be rather difficult too, because the rules for daylight savings are far from uniform and change quite often (for instance in australia this year).

Timezone offsets are saved in the portal settings, and in the user profile. Some modules use them, like the forums, where date times can be displayed in the timezone of the logged on user. The framework has some methods to calculate the date/time from a date in the db to a date in the current user's timezone

IT is not very easy though. The current version of the blog module also works with timezones, but has some bugs in that area.

Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

New Post
2/3/2007 11:39 AM

Ok, so it's impossible to manage time zone to DST. I'm finding more stuff saying that. But wait.....

I know that the portal can choose it's time zone and so can the user and that is stored as part of it's settings. But the actual data comes from somewhere. The dime zone editor. Where is this data stored. Please tell me that's not hard coded!!!  By the way, because this is such a touchy subject and it can't really be automated. It needs to be made easy for administrators. To be honest. I'm not sure why this wasn't already done. This is just an idea of where I would go with this.

First, I'd have a table that defines the timezone data, just like the Permissions table
Then for the settings on the user and the portal, change it from storing the minutes to the id in the new table
Then add a new setting for the user and the portal where you ASK them if they use DST.
Now you have everything you need. You could also add some new skin objects called currentsystemtime and currentusertime.

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Time Zones and Daylights savingsTime Zones and Daylights savings

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out