Forum Sitebox Server Time Doesnt Work

Discussion and help relating to the PlayerIO webpage and Facebook app hosting solution, Sitebox.

Server Time Doesnt Work

Postby X-Jack Rich » August 4th, 2015, 5:03 pm

Hello, today i tried adding server time to my game but it doesnt work. i have it like this
Code: Select all
flashvars['fbname'] =
       flashvars['fbuid'] =,
          flashvars['browserURL'] = window.location.href,
           flashvars['access_token'] = test,
             flashvars['http_server_time'] = {{http_server_time}},
              flashvars['http_server_unixtime'] = {{http_server_unixtime}},
             flashvars['authkey'] = * 8 / 2 + 2

and it doesnt work, but as soon as i remove server time it works.
X-Jack Rich
Posts: 13
Joined: July 26th, 2014, 10:14 am

Re: Server Time Doesnt Work

Postby Henrik » August 5th, 2015, 6:40 pm

What does the rendered page look like? I would assume that http_server_time is a date string, so you need to put ' around it, otherwise it's not valid Javascript.
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Return to Sitebox