@ramrajone
Thanks for your reply. After your earlier comment, I did end up adding the timezone info to all the php.ini files. Restarted Apache2 but there is no change. The time is off by 2.30 hours.
I also checked the link you provided and here is the output.
+--------------------+---------------------+
| @@GLOBAL.time_zone | @@SESSION.time_zone |
+--------------------+---------------------+
| SYSTEM | SYSTEM |
+--------------------+---------------------+
1 row in set (0.00 sec)
+------------------+--------+
| Variable_name | Value |
+------------------+--------+
| system_time_zone | IST |
| time_zone | SYSTEM |
+------------------+--------+
Ubuntu tzdata,
Local time is now: Sunday 26 September 2021 07:29:23 AM IST.
Universal Time is now: Sun Sep 26 01:59:23 UTC 2021.
I don't see anything out of the way.