phpMyAdmin SQL Dump, Generation Time and TimeZone difference

Problems with the Windows version of XAMPP, questions, comments, and anything related.

phpMyAdmin SQL Dump, Generation Time and TimeZone difference

Postby Rob_Again » 18. July 2022 10:33

When I do an export of a database the Generation Time on the .sql file and my current is about 10 hours behind.
My time_zone is Pacific/Auckland and 10 hours behind is CEST.
When I type
SHOW VARIABLES LIKE '%zone%';
into SQL I get
system_time_zone Pacific/Auckland
time_zone SYSTEM

When I type
SELECT NOW();
I get
NOW() Full texts
2022-07-18 20:37:52


Both of which are correct.

At the top of the dump is
-- Host: 127.0.0.1
-- Generation Time: Jul 16, 2022 at 11:16 PM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 7.4.29

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


NOTE: This is taken from an eairler dump so the date etc are not current

How do I get the dump to show my SYSTEM time ... and where do I SET time_zone
Rob_Again
 
Posts: 4
Joined: 27. July 2020 09:42
XAMPP version: 4.9.0.1
Operating System: Windows 10

Re: phpMyAdmin SQL Dump, Generation Time and TimeZone differ

Postby cb » 19. July 2022 09:12

Try changing the timezone in the php.ini file

from
date.timezone=Europe/Berlin

to
date.timezone=Pacific/Auckland
cb
cb
 
Posts: 38
Joined: 11. June 2008 22:48

Re: phpMyAdmin SQL Dump, Generation Time and TimeZone differ

Postby Rob_Again » 19. July 2022 09:50

Thanks.. I was looking in the wrong file (my.ini)
Rob_Again
 
Posts: 4
Joined: 27. July 2020 09:42
XAMPP version: 4.9.0.1
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 131 guests