Created
May 26, 2021 16:32
-
-
Save interactiveRob/743bac729baa89fe4318d8392848e9f6 to your computer and use it in GitHub Desktop.
PHP Expiring Content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $go_live_time = new DateTime('2021-7-1 6:00:00', new DateTimeZone('America/New_York')); | |
| $current_time = new DateTime('America/New_York'); | |
| if($current_time < $go_live_time): | |
| return; | |
| endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment