I hate dates :(
So, I have stored dates in my SQL database using GETUTCDATE() which appears to be working fine.
Tue Oct 30 2012 01:37:57 GMT+0000 (GMT STANDARD TIME)
now, what I would like is this.
I want it to show something like :
Tue Oct 30 2012 01:37:57
and if the person viewing my site has their regional settings set to GMT + 0200 I want the time to be displayed for them in their region:
Tue Oct 30 2012 03:37:57
I have been searching for ages and I just can't find anything to do it.
I thought that date.js would work, but it can't handle the "(GMT STANDARD TIME)" which is a shame.
Any help would be greatly appreciated.
I'm not sure I understand your problem. :confused:
When I run the following script, I get exactly what you want...
The time displays for my own time zone without any adjustments.
<title> Untitled </title>
var now = new Date();
Do you have an example that shows the error you are getting?
Is you browser set-up to show something different?