summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-30 09:58:40 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-30 09:58:40 +0200
commitd0cc7cf192d41dc2dcb8db595d246785140f79a1 (patch)
tree04bae8707b76a154e35dade73fbc7c09dc02439d
parentc7a75d9c92fad732556160cdc9f486dd1a2e8cac (diff)
parent6ec19b3681195e7ba91b86abb81fd4c829e3dd20 (diff)
Merge pull request #66636 from gotnospirit/master-project_converter-os-get_datetime
Project converter: OS.get_datetime -> Time.get_datetime_dict_from_system
-rw-r--r--editor/project_converter_3_to_4.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp
index cb76147a56..d8ff1e1b6e 100644
--- a/editor/project_converter_3_to_4.cpp
+++ b/editor/project_converter_3_to_4.cpp
@@ -3607,6 +3607,9 @@ void ProjectConverter3To4::process_gdscript_line(String &line, const RegExContai
if (line.contains("OS.get_unix_time")) {
line = line.replace("OS.get_unix_time", "Time.get_unix_time_from_system");
}
+ if (line.contains("OS.get_datetime")) {
+ line = line.replace("OS.get_datetime", "Time.get_datetime_dict_from_system");
+ }
}
void ProjectConverter3To4::process_csharp_line(String &line, const RegExContainer &reg_container) {