How to calculate MySQL timezone offset

Sometimes it is necessary to calculate the offset for the current timezone. Therefore you can use this helpful snippet:
Sometimes it is necessary to calculate the offset for the current timezone. Therefore you can use this helpful snippet:
Mistakes in the conception phase of a project often pay off in a far far later point in time. This also applies for the setting innodb_file_per_table
in MySQL.