Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Problem- saving incorrect time into database
Martin Navarro
Posts: 18
 
Problem- saving incorrect time into databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Aug 06 11:52 AM
fiogf49gjkf0d

Saving Incorrect time into database
Posted: 24 Aug 06 11:48 AM

We recently converted to 6.2 from 6.1 ( don't know if this is related to this issue). The problem I am having is as follows:
When writing a record into the database, the createdate and modifydate is 5 hours ahead of what it realy should be...

... I have traced the code to the point just before the call to the objRS.Update and the time looks fine (what it should be).

... I have also, duplicated the same functionality in Query Analyzer and found no problemthere...

Thanks in advance for your help!
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Problem- savint incorrect time into databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Aug 06 12:08 PM
fiogf49gjkf0d
Martin,

This is behaving correctly. In 6.2 dates are stored in UTC/GMT. If you use the SalesLogix OLEDB Provider to read the data it will auto adjust the datetime for you based on your timezone.

This is one of the reasons why it is critical to write data to the SalesLogix database via the SLXOLEDB Provider.

Timmus
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Problem- savint incorrect time into databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Aug 06 12:52 PM
fiogf49gjkf0d
If you're seeing the dates incorrect via Query Analyzer, then this is expected and correct behavior. In 6.2 the dates are stored as UTC format in the database. The SLX OLEDB Provider translates the dates to the users local time zone (Windows setting). So in the client, all dates should look fine. But queries that do not use the SLX provider, such as via QA, the date translation will not occur and you will be seeing the UTC value.

So, make sure that:

1) You've run the UTC/GMT conversion utility when you upgraded
2) Any time you read from the SLX database you're using a connection via the SLX provider
3) Any time you write to the SLX database you're using a connection via the SLX provider

Then, all is well
[Reply][Quote]
Martin Navarro
Posts: 18
 
Re: Problem- savint incorrect time into databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Aug 06 3:56 PM
fiogf49gjkf0d
Thans All... I was able to verify it all... Not that I did not believe you... but I just had to see with my own eyes...

Thanks again...
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 11:46:48 PM