Skip to content

Commit 87f83bf

Browse files
committed
Tracking: fix timezone issue in date calculation that generates error with logout date comparaison - refs BT#21495
1 parent 5f87db6 commit 87f83bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/api.lib.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4280,7 +4280,7 @@ function convert_sql_date($last_post_datetime)
42804280
list($year, $month, $day) = explode('-', $last_post_date);
42814281
list($hour, $min, $sec) = explode(':', $last_post_time);
42824282

4283-
return mktime((int) $hour, (int) $min, (int) $sec, (int) $month, (int) $day, (int) $year);
4283+
return gmmktime((int) $hour, (int) $min, (int) $sec, (int) $month, (int) $day, (int) $year);
42844284
}
42854285

42864286
/**

0 commit comments

Comments
 (0)