From 0561b8eea702d8b03e6d5270e4d0fdfe6e4ee955 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 4 Sep 2023 12:24:26 +0530 Subject: [PATCH] refactor: object declaration syntax in test Co-authored-by: Filip Tibell --- types/datetime.luau | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types/datetime.luau b/types/datetime.luau index 7733636..b6a4f09 100644 --- a/types/datetime.luau +++ b/types/datetime.luau @@ -76,13 +76,13 @@ export type DateTime = { -- Returns a specific moment in time as a DateTime instance DateTime.fromLocalTime({ - ["year"] = 2023, - ["month"] = "aug", - ["day"] = 26, - ["hour"] = 16, - ["minute"] = 56, - ["second"] = 28, - ["millisecond"] = 892, + year = 2023, + month = "aug", + day = 26, + hour = 16, + minute = 56, + second = 28, + millisecond = 892, }) -- Returns the current local time as a DateTime instance