| 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.