Help needed with custom function: error: Invalid time zone specified: undefined

@bent0n If it was syntax issue I wouldn’t had asked. :slight_smile: But this doesn’t look like syntax issue. The function does not know what time zone it should use, I guess, so I had to pass it somehow. This exact snippet was taken from this forum from here. Perhaps I’m blind but both looks the same…