2023-05-17 07:23:37 +00:00
|
|
|
DELIMITER $$
|
2024-01-15 11:31:03 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION util.mockTime()
|
|
|
|
RETURNS DATETIME
|
|
|
|
DETERMINISTIC
|
2023-05-17 07:23:37 +00:00
|
|
|
BEGIN
|
2024-01-15 11:31:03 +00:00
|
|
|
RETURN @mockDate;
|
2023-05-17 07:23:37 +00:00
|
|
|
END$$
|
2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER ;
|
2023-05-17 07:23:37 +00:00
|
|
|
|
2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION util.mockUtcTime()
|
|
|
|
RETURNS DATETIME
|
|
|
|
DETERMINISTIC
|
2023-05-16 13:00:31 +00:00
|
|
|
BEGIN
|
2024-01-15 11:31:03 +00:00
|
|
|
RETURN @mockDate;
|
2023-05-17 07:23:37 +00:00
|
|
|
END$$
|
2023-05-16 13:00:31 +00:00
|
|
|
DELIMITER ;
|