Time zone of exporting data to file

Feb 3, 2014 at 3:48 PM
I have a problem to backup and restore data.

the datetime data are recorded in the file restoration but they are incorrect. I noticed that the file it specifies the time zone "+0:00" and are given - 5:00 which is exactly the time zone for my area (-5:00 GMT) .. how should I do to have a correct restoration

thank you.
Feb 4, 2014 at 3:54 AM
The exported data was incorrect?
or the data was incorrect after import?
Feb 4, 2014 at 7:09 PM
Hello, Backup to file, IN FILE all data of type "DateTime" is Ok, but after restoring...(import), all data of type "DateTime" is incorrect !! timezone offset is apply... Dont Ok for me, is possible to deactivated this features ?

Excuse me for my bad english, I speak french !

thanks for ur reply
Feb 4, 2014 at 7:14 PM
I believe that importation is a fit of the data according datetime timezone and this line in the export file "/ * 40103 SET TIME_ZONE = '+00:00' * /;" I would like the data are not changed.
Feb 5, 2014 at 1:55 AM
I have retested this function and did not discover the problem that you have mentioned.
Here is the database that I've created, you may use it for testing:
May I know which version of MySqlBackup.NET are you using?
Feb 5, 2014 at 12:14 PM
a dll file version is but the binaries folder v2.01 (my last download)

region Assembly MySqlBackup.dll, v1.0.0.0

// C:\CPM\HMI Controle PM Composants\MySqlBackup.NET 2.0.1\Binaries\v4.0 net\MySqlBackup.dll


using System;
using System.IO;

namespace MySql.Data.MySqlClient
public class MySqlBackup : IDisposable
    public const string Version = "2.0.1";

    public ExportInformations ExportInfo;
    public ImportInformations ImportInfo;

    public MySqlBackup();
    public MySqlBackup(MySqlCommand cmd);

    public MySqlCommand Command { get; set; }
    public MySqlDatabase Database { get; }
Feb 5, 2014 at 12:31 PM
After importing data of type "timestamp" are changed (function importing apply bad offset)... Not need this features
Feb 5, 2014 at 1:55 PM
I found my mistake, I had an old version export data. Now this is the latest version for both applications (Export and Import) sorry for the inconvenience and thank you for this post adriancs for trying to help me.

Now it works well

Great librairy !! :-)
Feb 6, 2014 at 12:02 AM
you're welcome.