ravisatuluri Posted December 17, 2013 Report Share Posted December 17, 2013 Hi everyone, I am new to MEP and started developing Macros. macros are executing in our local system and working fine. Once if i deployed to production and executing on centralized server. In my macro i need to find out the central time zone.. how do i capture the central time zone with respect the server.. Please help me out asap... thanks in advance for earlier responces. Thanks ravikumar Quote Link to comment Share on other sites More sharing options...
Cory Posted December 17, 2013 Report Share Posted December 17, 2013 I can't think of any way to do it in MEP. If it were me I'd write a VBScript and run it in the External Script command and use WMI to get the time offset. Quote Link to comment Share on other sites More sharing options...
ravisatuluri Posted December 17, 2013 Author Report Share Posted December 17, 2013 is there any alternate way to doing this.. becasue evry time for day light saving we need change the code. Quote Link to comment Share on other sites More sharing options...
Cory Posted December 17, 2013 Report Share Posted December 17, 2013 Like I said in my other post it's better to use UTC directly. This is why computer systems, especially servers, all run on UTC. It is not affected by time zones and DST rules. The name says it all "Universal Time Coordinated". Even things like my appointments in Outlook are all saved in UTC. Outlook just applies the necessary offsets depending on where I am. That way when I make a appointment in California and travel to Connecticut my meeting time apparently moves in my calendar when I update my time zone in Windows and I don't miss my client meeting. Quote Link to comment Share on other sites More sharing options...
ravisatuluri Posted December 18, 2013 Author Report Share Posted December 18, 2013 Hi Cary, correct ..what exactly I am looking is this. can you please provide the MEP script to capture the UTC time using variable if you have. Quote Link to comment Share on other sites More sharing options...
Cory Posted December 18, 2013 Report Share Posted December 18, 2013 I don't have one at hand, I would need to write it. However I'm sure it would only take a few minutes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.