Hello Old Pedant
Thanks for your great little script!
I tested it and the server time is 8 hours behind, so I just replaced your '6' with '8' in the main code and it works like a treat to show the correct date (for me, I mean!) on the page.
Thanks a million (again).