23 lines
585 B
SQL
23 lines
585 B
SQL
|
|
DELIMITER $$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockTime`() RETURNS datetime
|
|
DETERMINISTIC
|
|
BEGIN
|
|
RETURN CONVERT_TZ('@mockDate', 'utc', 'Europe/Madrid');
|
|
END$$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockUtcTime`() RETURNS datetime
|
|
DETERMINISTIC
|
|
BEGIN
|
|
RETURN CONVERT_TZ('@mockDate', 'utc', 'Europe/Madrid');
|
|
END$$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockTimeBase`(vIsUtc BOOL) RETURNS datetime
|
|
DETERMINISTIC
|
|
BEGIN
|
|
RETURN CONVERT_TZ('@mockDate', 'utc', 'Europe/Madrid');
|
|
END$$
|
|
DELIMITER ;
|
|
|