Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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...Skins, Themes, ...Skins, Themes, ...Currentdate skinobject and DSTCurrentdate skinobject and DST
Previous
 
Next
New Post
4/3/2008 11:59 AM
 

Hello,

on DNN 4.0.7 and 4.0.8 (different servers) I'm facing a strange problem with the DNN:CurrentDate skinobject: it shows the wrong time, from when we changed to DST.

I have Site Settings and User settings bot on UTC+1, but CurrentDate still shows the old hour (1 hour late: if it's now 17:50, it tells 16:50). I also see there was a bug (http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=2787&PROJID=2), but it's closed... what am I missing?

Here's how I define the skinobject in my skin:

<dnn:CURRENTDATE runat="server" id="dnnCURRENTDATE" DateFormat="dd MMMM yyyy HH:mm" />

 Thank you,

al.

 
New Post
4/3/2008 1:06 PM
 

Are the two servers time synched? I ask cause Microsoft had to send out a DST patch this year for the extended changes passed. I still run into servers which have not had this update put into place and thus are not aware its DST. Is it the case here? Probably not but its where I would first look.

 

 
New Post
4/3/2008 2:51 PM
 

DNN does currently not support DST, users and  admins need to adjust timezone settings.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/4/2008 5:36 AM
 

keeperofstars wrote

Are the two servers time synched? I ask cause Microsoft had to send out a DST patch this year for the extended changes passed. I still run into servers which have not had this update put into place and thus are not aware its DST. Is it the case here? Probably not but its where I would first look.

 

Hi,

no, they aren't (not explicitly: maybe some sync is made with Active Directory?)

Time is actually right on both servers, and also inside DNN: for example I handle a datetime field in a module of mine, and there I always get the right time. It appears that only the CurrentDate skinobject is suffering this problem.

Thanks,

al.

 
New Post
4/4/2008 5:45 AM
 

Sebastian Leupold wrote

DNN does currently not support DST, users and  admins need to adjust timezone settings.

Hi Sebastian,

do you mean we should change timezone when we're in DST? As far as I can see, the problem affects the CurrentDate skinobject only, not any datetime inside DNN. At least, I get the right time in a control of mine, where I get it with this code:

txtCreatedDate.Text = FormatDateTime(DateTime.Now, DateFormat.ShortDate) & " " & FormatDateTime(DateTime.Now, DateFormat.ShortTime)

Currentdate does:

 Dim objUserTime As New UserTime
If DateFormat <> "" Then
    lblDate.Text = Format(objUserTime.CurrentUserTime, DateFormat)
Else
    lblDate.Text = objUserTime.CurrentUserTime.ToLongDateString
End If

I'm investigating how UserTime is handled. Of course my code does not take into consideration user timezone, which is - I believe - causing the problem.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Currentdate skinobject and DSTCurrentdate skinobject and DST


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