Problemas com Date() em 10.3

Post Reply
User avatar
miragerr
Posts: 140
Joined: Tue Oct 11, 2005 2:36 am
Location: Brasil

Problemas com Date() em 10.3

Post by miragerr »

Ola amigos

Atualizei minha versão FWH 9.12 para a 10.3, e esta acontecendo o seguinte problema

Na versão 9.12
SET DATE BRITISH
? Date() -> "27/12/2010"

Na versão 10.3
SET DATE BRITISH
? Date() -> "27/12/2010 00:00:00.0" <<---- esta aparecendo o "00:00:00.0" ao final

Tem como solucionar isso

Tive que retornar para a FWH 9.12
Jackson Douglas C. Brito
Boa Vista - RR - Brasil
FWH 12.09 Last Build
xHarbour Free
UESTUDIO
SQLRDD
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Problemas com Date() em 10.3

Post by nageswaragunupudi »

In \fwh\source\function\valblank.prg ( version FWH 10.3 )
for present line no 64

Code: Select all

           if HB_IsDateTime( uVal )
substitute

Code: Select all

           if ( uVal - Int( uVal ) ) > 0 
 
The xHarbour function HB_IsDateTime( dVar ) should return .t. only when dVar has timepart also. But this function behaves differently in different versions of xHarbour. So, instead of relying on HB_IsDateTime() function of xHarbour, we need to have our own check if the date variable has timepart also or not.
Regards

G. N. Rao.
Hyderabad, India
User avatar
miragerr
Posts: 140
Joined: Tue Oct 11, 2005 2:36 am
Location: Brasil

Re: Problemas com Date() em 10.3

Post by miragerr »

Ola amigos

Obrigado RAO
Jackson Douglas C. Brito
Boa Vista - RR - Brasil
FWH 12.09 Last Build
xHarbour Free
UESTUDIO
SQLRDD
Post Reply