Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about term: $now #19

Open
RonR-WebDesign opened this issue Jan 11, 2020 · 1 comment
Open

Question about term: $now #19

RonR-WebDesign opened this issue Jan 11, 2020 · 1 comment

Comments

@RonR-WebDesign
Copy link

RonR-WebDesign commented Jan 11, 2020

In debug it shows $now is set to GMT. Is it possible to do $now minus 8 hours for Calif time?

@RonR-WebDesign
Copy link
Author

RonR-WebDesign commented Jan 11, 2020

Ok, I found the original code for "now" and I've added this to my functions.php:

add_filter( "eleconditions_vars",function($custom_vars){
date_default_timezone_set('America/Los_Angeles');
$custom_vars['nowPST']=date('Y-m-d');
return $custom_vars;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant