Working with Symfony2.0 and jQuery, I have a web application that in certain moment has to save some date data in database.
It works in Safari, Firefox and Chrome for Mac. And it works in Internet explorer, Firefox for Windows.
The problem comes ONLY working with Chrome for Windows.
And I know where the problem comes from, although I don't know how to solve it.
Easy: I get the Date from javascript:
var my_date = new Date();
In the browsers that it works, my_dates
values:
Mon Nov 19 2012 21:47:41 GMT+0100 (CET)
In the browser that it doesn't work (just Chrome for Windows), my_dates
values:
Mon Nov 19 2012 21:47:41 GMT+0100 (Hora estándar romance)
Then, in the server side, php says:
DateTime::__construct(): Failed to parse time string(Mon Nov 19 2012 21:47:41 GMT+0100 (Hora estándar romance)) at position 40(e): Double timezone specification.
So, on the one hand, Chrome for windows is generating that (Hora estándar romance)
. And on the other hand PHP is sort of finding that I am passing two timezone specifications.
Anyone knows how to solve this any on client or in server side? (or both)