Support

Minimize

Link Technologies provides 24x7 support to its customers.  Our online helpdesk allow our customers to log their issues as well as review the status of their calls and search our extensive knowledgebase for answers to common questions.

We further provide our valuable customers with a forum where they can discuss different topics.  Please register to contribute to these forums.

Forum

Minimize
 
Link Technologies User ForumsLink Technologies User ForumsLink ProductsLink ProductsCRMCRMCRM database stores datetime values Using Daylight Saving adjustmentCRM database stores datetime values Using Daylight Saving adjustment
Previous Previous
 
Next
 Disabled
New Post
 4/4/2011 4:08 PM
 
The CRM systsm stores datetime values in the database using DAYLIGHT Savings adjusted values. Therefore when uploading historical data, you need to take this into account.

If you default the time portion of the dates to '00:00:00:00', dates will display as ONE DAY BEFORE for date periods which fall during the daylight savings period. The best solution is to put the TIME as MIDDAY when you do not have a time portion. This way, when daylight savings adjustments are made, the date portion will not change.

This script will adjust existing data by 12 hours changing the TIME portion from 12Am to 12PM. Make sure you only run this ONCE.

-- START OF SCRIPT
update vwOrders set enddatetime_c = dateadd(hour,12,enddatetime_c) where convert(varchar(12),enddatetime_c,108) = '00:00:00'
update vwOrders set startdatetime_c = dateadd(hour,12,startdatetime_c) where convert(varchar(12),startdatetime_c,108) = '00:00:00'
-- EMD OF SCRIPT

Systems Engineer - Link Technologies
Previous Previous
 
Next
 Disabled
Link Technologies User ForumsLink Technologies User ForumsLink ProductsLink ProductsCRMCRMCRM database stores datetime values Using Daylight Saving adjustmentCRM database stores datetime values Using Daylight Saving adjustment

Inspired by Nina