CREATE TABLE tzt(
id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
ts TIMESTAMP NOT NULL,
dt DATETIME NOT NULL
);
SELECT @@global.time_zone, @@session.time_zone;
SET GLOBAL time_zone = 'Asia/Jerusalem';
SET SESSION time_zone = 'Asia/Jerusalem';
INSERT INTO tzt SET ts='2021-08-22 13:30:00', dt='2021-08-22 13:30:00';
SELECT * FROM tzt\G
SET GLOBAL time_zone = 'America/Sao_Paulo';
SET SESSION time_zone = 'America/Sao_Paulo';
SELECT * FROM tzt\G
Points regarding computing that I always forget - so I write them here to find them easily and maybe other could benefit too.
Saturday, March 5, 2022
MySQL Test Timezone Script
Subscribe to:
Post Comments (Atom)
My Tiny Spreadsheet Extension - A spreadsheet that lives in your browser
Download now The problem You need a simple fast spreadsheet Google Sheet is clutters up Excel files are lost Google Sheets are saved on t...
-
In order to access samba (windows share) from Linux XFCE using Thunar file browser you need to: 1. Install samba client sudo apt install smb...
-
When I was trying to download dependencies for my go project in an old Ubuntu machine I was getting this error all the time: "go: gopkg...
-
How to combine or embed and insert another .docx file (Microsoft office docx word document) into another one using PHPWord Joining two .doc...
No comments:
Post a Comment