AUTOMATIC TIME-BASED PUBLISHING
Testing a date checker simple function, for dynamic publishing rules. To convert date to timestamp, use input fields below:
To check the behavior of this page, insert current date (plus 1-2 minutes) in the above input field, than get the timestamp
and insert it in the hidden input fields contained in this page (by editing the HTML source). Then wait for the time
you set, refreshing the browser: you should see appear or disappear the boxes below.
The mechanism uses following logic: if both the hidden input (data_start
and data_end
) are 0,
the box is always visible. If the first is not 0 (data_start
), the box will be visible after that date.
If the second is not 0 (data_end
), the box will be visible until that date.
If both inputs are not 0, the box will be visible in that time range.