2023-05-17 07:23:37 +00:00
|
|
|
|
|
|
|
DELIMITER $$
|
2023-06-01 13:29:46 +00:00
|
|
|
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockTime`() RETURNS datetime
|
2023-05-17 07:23:37 +00:00
|
|
|
DETERMINISTIC
|
|
|
|
BEGIN
|
2023-05-17 11:14:43 +00:00
|
|
|
RETURN CONVERT_TZ('@mockDate', 'utc', 'Europe/Madrid');
|
2023-05-17 07:23:37 +00:00
|
|
|
END$$
|
|
|
|
|
2023-06-01 13:29:46 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockUtcTime`() RETURNS datetime
|
2023-05-17 07:23:37 +00:00
|
|
|
DETERMINISTIC
|
|
|
|
BEGIN
|
2023-05-17 11:14:43 +00:00
|
|
|
RETURN CONVERT_TZ('@mockDate', 'utc', 'Europe/Madrid');
|
2023-05-17 07:23:37 +00:00
|
|
|
END$$
|
|
|
|
|
2023-06-01 13:29:46 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`mockTimeBase`(vIsUtc BOOL) RETURNS datetime
|
2023-05-17 07:23:37 +00:00
|
|
|
DETERMINISTIC
|
2023-05-16 13:00:31 +00:00
|
|
|
BEGIN
|
2023-05-17 11:14:43 +00:00
|
|
|
RETURN CONVERT_TZ('@mockDate', 'utc', 'Europe/Madrid');
|
2023-05-17 07:23:37 +00:00
|
|
|
END$$
|
2023-05-16 13:00:31 +00:00
|
|
|
DELIMITER ;
|
2023-05-17 07:23:37 +00:00
|
|
|
|