Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: taskscheduler return next run time incorrect

$
0
0
Hi,

Windows Version for both the servers is Windows Server R2.
Yes, I am getting the correct next run time value when you use the system Windows Task Scheduler tool, but when I am using below code it to get the Next Run time it is converting as per EST (US) timezone.

TaskScheduler.Task task;
//some code here to initilize task object.
task.NextRunTime.ToString();

Result:

Last Run Time
3/13/14 4:30 PM

Next Run Time
3/13/14 11:40 AM

Next Run Time is showing as per (EST) it should be 3/13/14 4:40 PM. In Windows Task Schdule on Europe server it is showing Next Run Time = 3/13/14 4:40 PM.

Please help!

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>