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
    21 Oct 2008
    26 Apr 2012
    Link to this post
    I have created custom event module based on

    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
    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
    22 Jun 2011
    03 May 2012
    Link to this post
    At the bottom of this page, there is a small, yet helpful, 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