Quote:
Originally Posted by
hsemune
Hi Alister,
Adding daylight savings time or any other time zones does not correct this issue. I still see the hour result being incremented by -1 or 1, whether it's in March, October, July, February, November. I'm still befuddled by this...
Thanks!
---------- Post updated at 09:47 AM ---------- Previous update was at 08:15 AM ----------
I wrote an if statement adding or subtracting an hour when I encounter this, so the problem is solved for me. But it's less than ideal that I have to write additional code to work around an important and widely used script function.
You have yet to demonstrate that there is actually a shortcoming anywhere outside of your own understanding. That is not intended as an insult; it's just an objective analysis of your postings in this thread so far. Consider that the only
date example you've posted to demonstrate the "bug" actually returns the correct result.
If you believe that other invocations are returning an erroneous result, then post them. Also, it can't hurt if you list the exact
date implementation and version used, and some information about your operating system platform.
And if this is part of a larger script, and if that script in anyway handles the
date result before it's displayed, then post that code as well.
Regards,
Alister