Thank for suggestion
It helps
but I've found another problem - the same message appears
and I've digged into code and found that Timestmp field check get 0 value so Timestmp check cause this error
I fix this by manually setting Timestmp to now time
localtime(time);
$year=1900+$year;
$mon++;
if (length($mon)==1) {$mon="0$mon"}
if (length($mday)==1) {$mday="0$mday"}
if (length($hour)==1) {$hour="0$hour"}
if (length($min)==1) {$min="0$min"}
if (length($sec)==1) {$sec="0$sec"}
$save->{Timestmp} = "$year$mon$mday$hour$min$sec";
Tomorrow I'll try do ->update in hook with manually setting Timestmp
but I think this will not work coz update delete all Timestmp fields...
Let's see
It helps
but I've found another problem - the same message appears
and I've digged into code and found that Timestmp field check get 0 value so Timestmp check cause this error
I fix this by manually setting Timestmp to now time
Code:
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$year=1900+$year;
$mon++;
if (length($mon)==1) {$mon="0$mon"}
if (length($mday)==1) {$mday="0$mday"}
if (length($hour)==1) {$hour="0$hour"}
if (length($min)==1) {$min="0$min"}
if (length($sec)==1) {$sec="0$sec"}
$save->{Timestmp} = "$year$mon$mday$hour$min$sec";
Tomorrow I'll try do ->update in hook with manually setting Timestmp
but I think this will not work coz update delete all Timestmp fields...
Let's see