20pictures
08-03-2009, 08:49 AM
I am trying to offset my timezone by 8 hours.
I tried:
var $offset = 8 ;
var $now = DATE_ADD(NOW(),INTERVAL $offset HOUR);
...but I keep getting Error Message:
Parse error: syntax error, unexpected '(', expecting ',' or ';'
I've compared the syntax to various sources & it seems correct. Any ideas on what is wrong?
I even tried:
var $now = NOW();
...& it returned the same Error Message.
I tried:
var $offset = 8 ;
var $now = DATE_ADD(NOW(),INTERVAL $offset HOUR);
...but I keep getting Error Message:
Parse error: syntax error, unexpected '(', expecting ',' or ';'
I've compared the syntax to various sources & it seems correct. Any ideas on what is wrong?
I even tried:
var $now = NOW();
...& it returned the same Error Message.