At the time, I was just trying every way I could think of to make it work, and the only way it did, was when I did os.time() * 20.57142857142857
I also found this following post on a website to work out how to calculate the game time that I need…
To those fellow geeks who would like to know how to calculate Eorzea time based on the local time - take the current time (I’m assuming Epoch format below) and multiply it by 20.57142857142857. As per the above, 1 bell is 3600 Eorzean seconds and 175 Earth seconds, so 3600/175 = 20.57142857142857.
For example, here is what I use in my PHP code:
date_default_timezone_set(‘UTC’); // Use UTC time
print date(“H:i:s”, time()*20.57142857142857); // Provides current Eorzea time
The above post, is where I got the 20.57142857142857 from :)