The code still has yrend as a time field not varchar... update line 65 from:
$UpdateQuery->bindColumn("yrend", "t", "".((isset($_POST["yrend"]))?$_POST["yrend"]:"") ."", "WA_DEFAULT");
to:
$UpdateQuery->bindColumn("yrend", "s", "".((isset($_POST["yrend"]))?$_POST["yrend"]:"") ."", "WA_DEFAULT");