Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread EWB 3 Build 15 - Time Related Functions On Server
Thu, Jun 25 2020 11:01 PMPermanent Link

Rob Frye

Several of the time related functions aren't working properly within server applications.

1) HourOf returns a result as though the UTC parameter was set to True when the parameter is set to False.

2) DateTimeToStr always returns a result as though the UTC parameter was set to True.  (i.e. even when the parameter is False or omitted)

3) TimeToStr always returns a result as though the UTC parameter was set to True.  (i.e. even when the parameter is False or omitted)

For example -

 tme := EncodeDateTime(2010, 6, 25, 16, 25, 11, 0);

 txt1 := IntToStr(HourOf(tme));        // 16
 txt2 := IntToStr(HourOf(tme, False)); // 23
 txt3 := IntToStr(HourOf(tme, True));  // 23

 txt1 := TimeToStr(tme);               // 11:25 PM
 txt2 := TimeToStr(tme, False);        // 11:25 PM
 txt3 := TimeToStr(tme, True);         // 11:25 PM

 txt1 := DateTimeToStr(tme);         // 6/25/2010 11:25 PM
 txt2 := DateTimeToStr(tme, False);  // 6/25/2010 11:25 PM
 txt3 := DateTimeToStr(tme, True);   // 6/25/2010 11:25 PM

Rob
Thu, Jul 23 2020 4:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Rob,

<< Several of the time related functions aren't working properly within server applications. >>

These were thoroughly screwed up, but are now fixed in build 16.

Tim Young
Elevate Software
www.elevatesoft.com
Image