Add duration field and validation for ticket cancellation

This commit is contained in:
2025-05-29 06:31:31 +07:00
parent 33ef7566af
commit 6f0921ca2c
3 changed files with 55 additions and 8 deletions

View File

@ -925,7 +925,7 @@
public function NewDateDiff($time1, $time2, $precision = 6) {
// If not numeric then convert texts to unix timestamps
if (!is_int($time1)){$time1 = strtotime($time1);}
if (!is_int($time2)){$time2 = strtotime($time2);}
if (!is_int($time2)){$time2 = strtotime($time2);}
// If time1 is bigger than time2
// Then swap time1 and time2