Recent

Author Topic: Problems with dateFields  (Read 3270 times)

olecr

  • New member
  • *
  • Posts: 5
Problems with dateFields
« on: July 20, 2006, 04:19:33 pm »
Someone knows how to get the lazarus working with datefields correctly.
I'm getting always strage values when I try to get the dates from Db.... things like "22/12/21730 00:00"  .... Whats going on?

Lazarus 0.9.16 beta
Firebird 1.5
UIB2 + AlexDataSet

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: Problems with dateFields
« Reply #1 on: July 23, 2006, 08:21:17 pm »
I do not know the AlexDataSet, but to me it looks like a bug in the conversion of the date / time information to a string. When I use sqldb components I see dates are displayed all right (version 0.9.17)

So I guess the problem is in the used dataset.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Problems with dateFields
« Reply #2 on: July 24, 2006, 09:13:46 am »
It could also be caused by problems with fpc 2.0.2, in which datefield in dataset are not handled correctly always, afaik.

olecr

  • New member
  • *
  • Posts: 5
Problems with dateFields
« Reply #3 on: August 12, 2006, 01:07:08 pm »
Realy the problem was in the alexdataset. There was some lines marked to dont work.
Lines like that

{$IFDEF FPC}

After I dismarked then... all is working good.