[Gambas-user] Different quantities of seconds from UNIX date...

Benoît Minisini g4mba5 at gmail.com
Mon Apr 9 19:05:02 CEST 2018


Le 09/04/2018 à 13:47, Benoît Minisini a écrit :
> Le 09/04/2018 à 11:00, Gianluigi a écrit :
>>
>> Hi Benoit,
>> Now both functions return + 4 hours compared to UTC time.
>> Here in Italy + 2 hours as daylight saving time is in effect
>>
>> So I insist, for me ToUnixTime before was correct and the error is in 
>> DateDiff
>> Regards
>> Gianluigi
>>
> 
> I confirm the bug, but it is not in DateDiff(), which is a very 
> rudimentary function. It's elsewhere, but I didn't find yet!
> 

OK, I think I fixed it in commit 
https://gitlab.com/gambas/gambas/commit/de12caa1e784ba956bcf0e15a3b6efdc3cbe0c13.

You will tell me.

Regards,

-- 
Benoît Minisini


More information about the User mailing list