summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorKyle Luce <razzlegames@gmail.com>2016-03-12 19:13:57 -0700
committerKyle Luce <razzlegames@gmail.com>2016-03-13 15:27:39 -0700
commitfeef563f3f2ad7f1cb5aa2e788e3ea4adfee3c56 (patch)
treecb86c17f85513a4a4174d6628802d0059edb47f4 /core/os
parentbe4d58e1203ae35dab97b14f08098f50998d4201 (diff)
Fixes the month consistency issue in enums and get_date etc
- Also updated the docs to reflect this. - Added some vim temp files to gitignore - Changed NaCL to be consistent with the other OS_Unix::get_date implementation (added 1 to month to map to 1-12) Ticket: https://github.com/godotengine/godot/issues/4025
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/os/os.h b/core/os/os.h
index 73726feb37..160c0495bb 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -224,7 +224,9 @@ public:
};
enum Month {
- MONTH_JANUARY,
+ /// Start at 1 to follow Windows SYSTEMTIME structure
+ /// https://msdn.microsoft.com/en-us/library/windows/desktop/ms724950(v=vs.85).aspx
+ MONTH_JANUARY = 1,
MONTH_FEBRUARY,
MONTH_MARCH,
MONTH_APRIL,