Color Formula in Global Variable doesn't work

I've been trying to use a formula for color in Global Variable, but it does not work. Here's the formula:

$if(ai(isday)=1, #ff123abc, #aa321cba)$

I tried to change the color and even tried it without the HEX symbol, but it didn't work. Does that mean color formula doesn't work in global variables?

I think it is the same problem as here.

If you change the color in the object from link with global variable to calculated, it should work.