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 ForumsForumForumForum module shows incorrect posting time when logged inForum module shows incorrect posting time when logged in
Previous
 
Next
New Post
8/8/2012 1:47 AM
 

Hi. I'm using DNN 6.2.2 and DNN Forum Module (5.0.3).

There is a problem related with posting time. The posting time of thread is displayed correctly when I was not logged in. But when I logged in, posting time changed to incorrect time. Both admin account and normal account has this problem. Site setting's timezone and account's timezone setting is same. How to solve this problem?

This is my question in community exchange http://www.dotnetnuke.com/Community/C...


 
New Post
8/8/2012 2:09 AM
 

I found that other module (like repository) has same issue. And It seems that each account's preferred timezone setting does not works for module.

 
New Post
8/28/2012 2:31 PM
 

Have you found a solution for this?

 
New Post
8/28/2012 2:46 PM
 

You will likely want to recompile the forum source code with the ConvertTimeZone method in the utility class to be changed to 


Dim postTime As DateTime = displayCreatedDate
                Dim GMTTime As DateTime = System.TimeZoneInfo.ConvertTimeToUtc(displayCreatedDate, GetPortalSettings().TimeZone)
If HttpContext.Current.Request.IsAuthenticated Then
Dim objUser As Users.UserInfo = Users.UserController.GetCurrentUserInfo
                    'Dim UserTimeZone As System.TimeZoneInfo = objUser.Profile.PreferredTimeZone
                    'Dim UserTime As DateTime = System.TimeZoneInfo.ConvertTime(displayCreatedDate, UserTimeZone)
                    'displayCreatedDate = UserTime

                    displayCreatedDate = objUser.LocalTime(GMTTime)
End If


that is what I had to do to get it working with DNN6 time zone info for user profiles.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
8/28/2012 3:18 PM
 

Excellent. Worked perfectly!

//Ilpo

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumForum module shows incorrect posting time when logged inForum module shows incorrect posting time when logged in


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