Hot answers tagged

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} ...
user avatar
  • 5,234
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....
user avatar
  • 3,572
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 ...
user avatar
  • 2,255
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}' &...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible