According to this question, if you have a new, answer to an old question and you believe it's better than existing answers (or offers a solution not available at the time), it's OK to notify other answerers of your solution. It's specifically "not forbidden":
while it is not forbidden, some people may react badly on it.
I've done that for this 2010 question and asked in the JavaScript chat for "up/down votes as [y'all] see fit". Indeed, some people have reacted badly to that. I got -7 in short order, without comments, plus one delete vote, and all my comments on the other answers were deleted.
Is my answer that terrible to deserve -7, and to be deleted, and for the code snippet in it to no longer be runnable? (Yep, that's what happens, apparently, if your answer gets enough downvotes, presumably to prevent malware from being spread.)
UPDATE Some people didn't seem to grok that the OP wanted the time in the local time zone. If you look at the sample they provided, it's this:
<abbr title="2010-04-02T14:12:07">
That's not ISO8601, which has a 'Z' suffix for the UTC timezone. That's a a time without any specified timezone, which means a local time.
Thanks again for the downvotes here as well and for the comments admonishing me that my answer was off-topic. Anyway, I gave a new answer, because my goal was to help. I have enough rep to not care about downvotes, but not enough zen to not care about jerks.
Up/down vote as you see fit.
Asking for votes isn't really kosher anywhere on the Stack Exchange network.new Date(d.valueOf() - (d.getTimezoneOffset()/60000));
(I'm not sure what is wrong with "/60" calculations) orvar n = new Date(d); n.setMinutes(n.getMinutes() - d.getTimezoneOffset());
.getUTC*
functions and accepted an answer returning the date in UTC.