Web Services, .Net -> NAV2009, "TIME" issue
derrick
Member Posts: 86
Hi, buddies, both my web application and NAV are running in the same physical machine, whenever I call the codeunit type of web services to insert/update a record time by using "TIME" syntax, the time wasn't correctly inserted. For instance, my server time was 8:00:00, it inserted 11:00:00. I had tried:
1. Change my physical machine timezone to match my NAV language version, I am running an Euro version of NAV2009.
->
time wasn't correctly inserted.
2. Set the CultureInfo of my .Net Application to match my NAV language version too.
->
time wasn't correctly inserted.
3. Execute the codeunit directly in the NAV without went through web services
-> perfect, no issue.
Please share me if you have any idea on this or any document on how should this works. Thank you.
1. Change my physical machine timezone to match my NAV language version, I am running an Euro version of NAV2009.
->
2. Set the CultureInfo of my .Net Application to match my NAV language version too.
->
3. Execute the codeunit directly in the NAV without went through web services
-> perfect, no issue.
Please share me if you have any idea on this or any document on how should this works. Thank you.
0
Answers
-
I suppose that the time is taken and shifted by timezone of the NST - it means timezeone of the server have impact on it. Look at it...0
-
Yes, kine, that was what I thought, but surprisingly even I changed the timezone as well as the .Net globalization setting, it ends up the same. It looks like the web services sticking to one standard timezone :-k0
-
Hi.Web Services Originating from Different Time Zones
Microsoft Dynamics NAV Server cannot determine the time zone of origin for a Web service. Therefore, all Web server communication should be in UTC. All business logic is executed with respect to UTC.
http://msdn.microsoft.com/en-us/library/dd983801.aspx0 -
Thanks, apanko, you are so helpful :thumbsup:. This is interesting but no fun, we have to handle the conversion then.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
