Code to use the Server Time and not the Client Time?

mdmartin
Member Posts: 10
Hi
A clients users are connecting to a 3.70 SQL Server via Citrix from different time zones and are running reports which calculate a ‘time total’. Naturally different values are being returned (due to the time difference). Microsoft Dynamics have stated that Navision is not designed to use the server time, only client time and they cannot provide a resolution. They have made a suggestion regarding Citrix but this is not appropriate in the circumstances.
Does anyone know of a command / code that can be used to force a report to use the Server Time and not the Client Time?
Thanks
Michael
A clients users are connecting to a 3.70 SQL Server via Citrix from different time zones and are running reports which calculate a ‘time total’. Naturally different values are being returned (due to the time difference). Microsoft Dynamics have stated that Navision is not designed to use the server time, only client time and they cannot provide a resolution. They have made a suggestion regarding Citrix but this is not appropriate in the circumstances.
Does anyone know of a command / code that can be used to force a report to use the Server Time and not the Client Time?
Thanks
Michael
0
Comments
-
Hi
I'm sorry for my ignorance.
You can try to make your own table that save date and time on server and the table can be access by client.
Or you can access through SQL Server if you use it as database via store procedure.
I hope this can help.0 -
May be you can try to not use date and time fields but datetime fields. Datetime is timezone dependent. But I am not sure if it is just for MS SQL server or on Native DB server too.0
-
Or you can try to simply calculate date/time like it is calculated on this forum for example.
Give to users option to choose time zone, create codeunit or somehting that will calculate time on the "server" and than applicate that code to wherever you want.
Ofcourse, you will have to watch out for few details, What is reference time (Zero zone), Cause you have client time, you will have to reverse calculating from normal, To watch out for timezones that does not have summer/winter tima differences, etc...0 -
since they are connecting to citrix server, can you just sync the citrix servers to the database server time, using the nettime command, then the client will match.0
-
Check your citrix settings.
You can tell citrix to use the clients time and timezone for every session. Navision client will follow.
LeoLeo Bink
Kick-ICT / KICK Solutions0 -
Thank you for your suggestions.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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