Azure and GetDate
Hi Mike,
Do the Jiwa stored procedures do anything in terms of GetDate to adjust for time zones?
Do the Jiwa stored procedures do anything in terms of GetDate to adjust for time zones?
CREATE FUNCTION [dbo].[udf_GetDateSyd]()
RETURNS DateTime
AS
BEGIN
DECLARE @D datetimeoffset;
SET @D = CONVERT(datetimeoffset, SYSDATETIMEOFFSET()) AT TIME ZONE 'AUS Eastern Standard Time';
return (CONVERT(datetime,@D));
END
GO