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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsLocalize for UserLocalize for User's Time Zone?
Previous
 
Next
New Post
4/13/2007 1:12 PM
 

I'm still coming up to speed on the newest build and just want to confirm that there is no way to localize time/date to the user's own time zone?

Thanks,

Steve

 
New Post
4/13/2007 1:54 PM
 

try this...

Dim dtDate As New DateTime
' set a date to the server date/time
dtDate = Date.Now()
' if we have a user, localize the time based on their timezone
If HttpContext.Current.Request.IsAuthenticated Then
    Dim objUser As UserInfo = UserController.GetCurrentUserInfo
    Dim UserTime As New Entities.Users.UserTime
    dtDate = UserTime.ConvertToServerTime(dtDate, objUser.Profile.TimeZone)
End If

 
New Post
4/13/2007 2:34 PM
 

There was so much confusion before, we dropped the conversion to the User's TimeZone in the module. 

Instead, each instance of the module has a setting for the Events in that Instance (defaults to the Site TimeZone Setting initially).  You can change it for the instance.  Also, SubCalendar (other instances) may be set to a diff. TimeZone.  When linked to another Instance, their TimeZone is converted to the setting for that instance....  During testing, this created less confusion.

 
New Post
4/13/2007 3:01 PM
 

sorry, I didn't realize the question was about the Events module is particular, I was moderating the initial post and mistakenly thought it was a development question.

 
New Post
4/13/2007 6:28 PM
 

Alan,

I would suggest to add a module setting for user or module time zone, because it depends on the usage of the module, which zon is applied:

  • a city events calendar needs a fixed time zone
  • a web cast or chat calendar needs a converted time zone

we still have the issue, that DNN does not take DST into account.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsLocalize for UserLocalize for User's Time Zone?


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