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 ForumsForumForumDNN Forum & Support for DNN8DNN Forum & Support for DNN8
Previous
 
Next
New Post
2/2/2016 12:05 AM
 
Sebastian Leupold wrote:
AFAIK this forums has issues adjusting time to local timezone properly, this is a known issue.

 

I believe some of those I already addressed on earlier releases and now that this popped up, will see if this can be changed to show times on browser timezone. Should not be a big issue.
 
New Post
2/2/2016 5:45 AM
 
Tony Henrich wrote:

Whose local time zone? The browser? A forum setting? 

AFAIK it is an issue of the forums module, which doesn't properly convert system time (stored in the database) to user time.

 

It would be a big step forward, if modules would store datetime values in UTC and adjust to user time upon display, as this would allow moving the server to a different time zone without the need of data corrections.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/2/2016 1:34 PM
 

Right now the post date in database is set to GETDATE() method at sqlserver stored procedure so it is local to database server.

For dates show to user there are two methods in use:

  1. For unauthenticated users datetime is shown based on site timezone which is set in site settings
  2. For authenticated users datetime is shown based on users preferred time zone from user profile 

I have used on one scenario javascript solution to fix datetimes shown to user so that server sends everything as UTC and browser fixes these to local timezone found in browser, need to investigate if this would be a feasible thing to implement. After looking into it for 2 minutes it might be a working option, but not sure what benefit it would bring into this picture.

Need to think some more :)

 
New Post
2/2/2016 2:02 PM
 

What makes sense for every user is local time to the user. For authenticated users they can change it to something else. The whole point of a timestamp is to know how old a post is if it's a same day post. In some forum software I have seen, if the new post is posted few minutes ago, the time stamp will look something like '5 minutes ago'. No timezone involved. This makes sense. StackExchange/StackOverflow does that. 

The proper timestamp calculation is simple to do. Save the time  when the post is created in SQL Server using UTC time. Get the user's timezone through javascript and then convert the UTC time to that time zone when displaying the posts. Although I guess there needs to be a second request done asynchronously to send the unauthenticated user's time zone to the server? Can't determine it from the first request.

 
New Post
2/2/2016 2:11 PM
 

Jep. Will see if something like this would be feasible to implement.

There is no need for second request as server always sends it as UTC and client does the conversion.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumDNN Forum & Support for DNN8DNN Forum & Support for DNN8


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