Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Feedback Module...  Incorrect time of the message..
Previous Previous
 
Next Next
New Post 5/14/2008 10:19 AM
User is offline Sebastian Leupold
12946 posts
www.deutschnetnuke.de
1st Ranked












Re: Incorrect time of the message.. 

David,

you will need to modify the source code. Besides, please log the issue (and your fix) to the public issue tracker at support.dotnetnuke.com, thank you.


Sebastian Leupold



DotNetNuke Project UserDefinedTable
DotNetNuke Project XML/XSL
 
New Post 6/10/2008 11:17 AM
User is offline Eric Peng
352 posts
sina101.com
8th Ranked




Re: Incorrect time of the message.. 

Hi Sebastian,

Can you tell me how to modify this from source code directly?

 

Thank you~~

 
New Post 6/15/2008 2:34 PM
User is offline Sanjay Mehrotra
402 posts
www.acuitisolutions.com
8th Ranked




Re: Incorrect time of the message.. 

Eric - you wouldn't be able to modify it from the source code itself. When a feedback is created, the system is using the date/time on the database server to set the createdate value. One way you could do it in the code is to modify the viewcomments section and transform the createdate to whatever the corect date/time is in your timezone but this would be a "hack fix". The real fix needs to be done at the sproc itself where I pass in the create date as part of the parameters. I have this on track to be included in 5.0.0 once i finish up the rest of the to do's for that version..


Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post 6/16/2008 12:56 AM
User is offline Sebastian Leupold
12946 posts
www.deutschnetnuke.de
1st Ranked












Re: Incorrect time of the message.. 

Sanjay,

I am sorry, that I have to disagree, but I spent some time on this subject when evaluating options to implement DST support in the core for DNN 5.x.

Most modules - even in the core - deal incorrectly with timestamp values by usually deriving it from SQL Server using GetDate. There are several issues caused by this practice:

  • timestamps will remain unchanged, when server time zone is changed (e.g. for DST turned on/off)
  • there might be differences between sql server and web server time, and any comparison with current time on the web server will be inacurate (e.g. for search indexing)
  • timestamp in "createdAt" field, autmatically set in AddItem stored procedure cannot be kept during Export/Import

Therefore my advice to all module developers:

  • Always store timestamp values in UTC and convert to appropriate user time zone when displaying the value to the user. Due to current limitations of DotNetNuke, the time displayed will be offsetted by an hour during DST.
  • Always create timestamp on the web server and pass to SQL to avoid inaccuracies and be able to keep it

The issues listed are of minor relevance for Feedback module, but should be regarded as best practices.


Sebastian Leupold



DotNetNuke Project UserDefinedTable
DotNetNuke Project XML/XSL
 
New Post 6/16/2008 8:54 AM
User is offline Sanjay Mehrotra
402 posts
www.acuitisolutions.com
8th Ranked




Re: Incorrect time of the message.. 

Sebastian - good post and thanks for the heads up... I was going to look at one of the existing modules to see if I could get the proper direction before attempting to make the fix :)... I do understand about UTC and was planning to address it similar to what you've mentioned (ie creating timestamps on the web server and passing it to SQL)...

I'll touch base with you to go over my proposed fix but I think we're on the same page :)

Thanks again
Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Feedback Module...  Incorrect time of the message..
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au
Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP