]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/player_nicks.tab
Use UTC timestamps instead of local timestamps.
[xonotic/xonstatdb.git] / tables / player_nicks.tab
index d80c8dd242c4d19ffcfb0c809479fc1271abd523..6a42088040fb5836d0fa70ae15f70a3d2f7b4dc4 100644 (file)
@@ -3,7 +3,7 @@ CREATE TABLE xonstat.player_nicks
   player_id integer NOT NULL,
   stripped_nick character varying(128) NOT NULL,
   nick character varying(128) NOT NULL,
-  create_dt timestamp without time zone NOT NULL DEFAULT now(),
+  create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
   CONSTRAINT player_nicks_pk PRIMARY KEY (player_id, stripped_nick),
   CONSTRAINT player_nicks_fk01 FOREIGN KEY (player_id)
       REFERENCES xonstat.players (player_id) MATCH SIMPLE