I’ve had a hard time figuring out how to solve the problem with localtime extracted through JavaScript and converting it into GMT. THe problem comes when you have to consider the daylight saving time option on Windows OS, which so far I haven’t found how to read through JavaScript, PHP or whatever… However I found this article in a blog, which talks in details about the problem and ways for its resolution.
Surely I’ve found that you can’t depend on MySQL’s GMT time settings. It’s best to use PHP’s time functions like gmktime and others alike.