0

I run PHP and MySQL on the same machine, but both report different times.

I set the timezones by the following methods:

PHP:

date_default_timezone_set('Asia/Kuala_Lumpur');

MySQL:

SET time_zone = "Asia/Kuala_Lumpur";

The difference between two times is always exactly 24 seconds. Any idea why this is happening? I thought the times must be same because both reside on the same machine!

Nirmal
  • 9,391
  • 11
  • 57
  • 81

1 Answers1

1

see this question: Why does MySQL CONVERT_TZ alter the seconds after timezone adjustment?

Community
  • 1
  • 1
Craig
  • 4,750
  • 22
  • 21