joined:Aug 20, 2004
Hello All -
Brain-wracking issue here.
That is, it's perfect for users in my timezone (Manila, Philippines).
var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
var stamp = 1335024000;
var a = new Date(stamp*1000);
var date = a.getDate();
var month = months[a.getMonth()];
I've investigated getTimezoneOffset() and, it does give a -5 hour offset from UTC, but I don't understand how to alter my code to accommodate this offset.
Will getTimezoneOffset() correct this issue? If not, how does one deal with this issue?
All guidance greatly appreciated.
alert(date + ' ' + month);