Support » Plugin: Content Scheduler » Setting the expiration date programmatically

  • Hi,

    I’m trying to set _cs-enable-schedule and _cs-expire-date programmatically, but when I check the post, it is not displaying that it is set. I’m not sure if I’m doing something wrong or what.

    For the first custom value, I have “Enable”. For the second I have “2016-05-02 00:00:00”. No quotes, of course.

Viewing 1 replies (of 1 total)
  • I’ve been playing with this recently as well and it looks like somewhere down the road between versions the required datetime format changed from a string that looks like “YYYY-MM-DD HH:MM:SS” to an epoch value (the number of seconds since Jan 01, 1970 00:00:00 UTC)

    I’m having issues with timezone support (CS is converting all my input to UTC despite it being input in my local timezone) but hopefully this will help you.

Viewing 1 replies (of 1 total)
  • The topic ‘Setting the expiration date programmatically’ is closed to new replies.