2
votes
Accepted
Stash with timestamps and custom written module
Carefully "unescape" the variables you want to be cached, so e.g.
{stash:nocache}
<div>
{if {current_time format="%U"} - {/stash:nocache}{event_time format="%U"}{stash:nocache} < -86400}
...
1
vote
Accepted
Take input as localized time of the user via channel form
AFAIK there is no automatic way to do this kind of time zone adjustment in EE.
EE stores times relative to the server's location timezone, or relative a different timezone if you specify it in the CP....
1
vote
Accepted
Date conditional for over test if over 2 years
You're on the right track, but no bracing and formatting is needed; date variables will output timestamps without formatting, and comparisons can be made properly between integer types. So you can use ...
1
vote
Conditional Statements to show Open Hours
jrothafer's troubleshooting suggestion will tell you a lot. If that looks good, try putting the tags in single quotes like so:
{if '{current_time format="%h"}' >= '{branch_hours:opening_hour}' &...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
time × 15date × 6
channel-entries × 2
conditionals × 2
entry-date × 2
localization × 2
stash × 1
safecracker × 1
channel × 1
php × 1
custom-fields × 1
grid × 1
module × 1
low-variables × 1
mysql × 1
ifelse × 1
calendar × 1
multi-language × 1
orderby × 1
low × 1
comparison × 1
mustash × 1
datetime × 1