datetime in generated class?

Hi,

and thank you to all developers for a fantastic software.

I am developing a module. I have a problem with the auto generated classes with /dev/skeleton/build_class_from_table.php. The problem is how to use the generated code from the sql type datetime.

As I can see in the class:

$this->db->idate($this->mydate) for create, INSERT INTO

$this->db->jdate($obj->mydate) for fetch, SELECT

$this->db->idate($this->mydate) for update, UPDATE

So in what format shall the input and output of the dates be? mydate above.

I could rewrite the class file but i wish to keep it as it is generated if i need to regenerate it.

Thanks in advance and any response is welcome.

$this->mydate must contains a GMT universal timestamp.

Same than result of command mktime() for example.

Thanks,

mktime() works fine.As understand dol_mktime() is used for windows compability.