A follow-up question to Mike's question about getting the time in KRL. Is it possible to get the user's timezone? There is a timezone predicate,
time:timezone(<arg>)
but it looks like it requires an argument. How do I use that?
A follow-up question to Mike's question about getting the time in KRL. Is it possible to get the user's timezone? There is a timezone predicate,
time:timezone(<arg>)
but it looks like it requires an argument. How do I use that?
time:timezone(<arg>)
is a predicate which returns true or false.
I will correct the documentation, but time:timezone() takes a timezone abbreviation and checks the user's geo-location (based upon IP address) and returns true or false
rule first_rule is active {
select when pageview ".*" setting ()
if (time:timezone("MST")) then {
notify("Glee alert", "Glee starts at 7pm");
}
}