![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
![]() |
Wed, Jul 24 2013 5:35 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. ![]() | There appears to be a bug in the StrToDateTime function with the UTC set
to true. StrToDateTime('23/07/2013 9:00',false) = 23/07/2013 8:00 but StrToDateTime('23/07/2013 9:00',true) = 23/08/2013 9:00 Note that the date has added 1 to the month! -- Chris Holland [Team Elevate] |
Wed, Jul 24 2013 6:08 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. ![]() | It appears that the bug is in the EncodeDateTime function:
function encodedatetime($0, $1, $2, $3, $4, $5, $6, $7) { if ($7) return new Date(Date.UTC($0, $1, $2, $3, $4, $5, $6)).getTime(); else return new Date($0, $1 - 1, $2, $3, $4, $5, $6).getTime(); }; I think if $7 is set then the line should read $1 - 1 as it does in the second part of the function. Chris Holland [Team Elevate] On 24/07/2013 10:35, Chris Holland wrote: > There appears to be a bug in the StrToDateTime function with the UTC set > to true. > > StrToDateTime('23/07/2013 9:00',false) = 23/07/2013 8:00 > > but > > StrToDateTime('23/07/2013 9:00',true) = 23/08/2013 9:00 > > Note that the date has added 1 to the month! > |
Mon, Jul 29 2013 1:55 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Chris,
<< It appears that the bug is in the EncodeDateTime function: >> Yep, thanks, I'll make sure that this is fixed. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, November 29, 2023 at 09:43 PM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |