1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Event Task Schedule ExecuteTask() local Server time

Event Task Schedule ExecuteTask() local Server time

3 posts, 0 answered
  1. Nick
    Nick avatar
    113 posts
    Registered:
    21 Oct 2008
    26 Apr 2012
    Link to this post
    I have created custom event module based on http://www.sitefinity.com/documentation/documentationarticles/developers-guide/how-to/how-to-schedule-a-task-to-import-pop3-content/creating-the-scheduled-task/creating-the-task

    All works fine except that the ExecuteTask() method is called after an hour (I suppose its not taking server time/British Summer Time  but always following UTC time)
    e.g. If I schedule event to be published at 10.00am it gets published at 11.00am
    i.e. if I set ExecuteTime to be 10am, The ExecuteTask() method is invoked at 11.00am
  2. Ivan
    Ivan avatar
    11 posts
    Registered:
    16 Jul 2010
    02 May 2012
    Link to this post
    I'm experiencing similar issue, only that my time zone is Easter Time and it moves 6 hours, not 1.
  3. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    03 May 2012
    Link to this post
    At the bottom of this page, there is a small, yet helpful, note:

    NOTE:
     You must set all date and time values in a UTC format in Sitefinity.

    I was doing this same thing the other day. In my case, I was publishing things 5 minutes from when the task was run so my code looked like this:

    dynamicModuleManager.Lifecycle.PublishWithSpecificDate(tItem, DateTime.UtcNow.AddMinutes(5));

3 posts, 0 answered