Relative Dates with Datejs
Posted
by Prasanna
on Stack Overflow
See other posts from Stack Overflow
or by Prasanna
Published on 2010-05-21T05:05:53Z
Indexed on
2010/05/21
5:10 UTC
Read the original article
Hit count: 242
I have a requirement where in, I have to parse the dates relative to a date object returned from the server side. But the datejs library always considers only the browsers date object. The situation is something like this: The server gives back the date in PST and the browser is in IST. And all the inputs are getting parsed with respect to the current date in IST instead of current date in PST. Is there any way I could resolve this. Or could you suggest any workarounds.
Thanks in advance.
© Stack Overflow or respective owner