mibuso.com

Microsoft Business Solutions online community
It is currently Fri Aug 01, 2014 5:46 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: FAQ | Configuring Web Services to use server time
PostPosted: Fri May 25, 2012 2:52 pm 
Offline

Joined: Mon May 07, 2012 12:37 pm
Posts: 7
Location: Hamburg
Country: Germany (de)
Symptom
Using time functions such as CURRENTDATETIME or TIME in code that is called through Anveo does not return the time set on the server.

Cause
Web Services use time zone UTC per default. If this is not your time zone, time functions called through Anveo and time functions called using a Dynamics NAV Client will return different results.

Solution
To make Web Services use the server time zone open the CustomSettings.config file in the Service folder of your Dynamics installation. Find the line
Code: Select all
<add key="WebServicesDefaultTimeZone" value="UTC"></add>

and change it to
Code: Select all
<add key="WebServicesDefaultTimeZone" value="Server Time Zone"></add>

Now time functions called through Anveo will return the time set on the server on which the Web Services are running.

_________________
Marc Bode
Anveo Developer
Anveo Client Suite for Microsoft Dynamics NAV
http://www.AnveoNAV.com


Top
 Profile E-mail WWW  
 
 Post subject: Re: FAQ | Configuring Web Services to use server time
PostPosted: Tue May 29, 2012 5:23 pm 
Offline

Joined: Wed May 02, 2012 10:21 am
Posts: 33
Country: Vietnam (vn)
Thanks for great sharing. If anyone want to read more about this, here is the link from Microsoft:
It's one of the new feature in NAV 2009
http://msdn.microsoft.com/en-us/library/gg502505.aspx
Scroll down and read "Defining the Time Zone for Web Services" section :)


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: