I have a value that I'm assigning to a variable that is the result of timelocal($sec,$min,$hour,$day,$month,$year).
If I print the variable I get the correct value in seconds since 1970. However if I attempt to use an Insert Into statement using DBI, the value is increased by 16 seconds.
If I directly assign the variable the same value (instead of getting it from timelocal) it does not change.
More strangely, if I enclose the variable derived from timelocal in double quotes in the bind_param statement it does not change and inserts the correct value.
I'm using Informix.
So I've gotten it to work but I don't understand why I'd have to enclose an integer variable in double quotes if I've received the value from timelocal.
If anybody can enlighten me that would be great. I've researched this all day but am stumped.
Thanks,
John