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  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


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

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 6/10/2008 11:17 AM
User is offline Eric Peng
368 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
506 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
14295 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

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 6/16/2008 8:54 AM
User is offline Sanjay Mehrotra
506 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.

 


AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
Swanzey Internet Group LLC
DotNetNuke design, development, e-Commerce, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com

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