Search

Hey all,

Trying to set up a Press Releases section that has a 'Publish on' date field whose value can be in the future (essentially a way to embargo the releases). We're trying to set up the DS to filter on this field and only display items whose 'Publish on' date are on or before today. Referencing this post on Chaotic Pattern, we've tried something like:

 1901-01-01, {$today}

Unfortunately it seems this is being treated like a series rather than a range. Can anyone clue me in on the proper syntax to use to specify a range here? Thanks.

I use to instead of ,

Thanks. We changed it to:

 1901-01-01 to {$today}

Which doesn't seem to be working. Thoughts?

Try a date later than 1950 or so - I remember that for any reason 1901-01-01 does not work, whereas 1950-01-01 does ...

Thanks Nils... should've done a better search :)

1970-01-01 00:00:00UTC is the earliest date you can represent as a timestamp. It is the Unix Epoch. To make the range work properly, you should use 1901-01-02 to {$today}

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details