From 6ec19b3681195e7ba91b86abb81fd4c829e3dd20 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 30 Sep 2022 10:10:16 +0800 Subject: [PATCH] Project converter: OS.get_datetime -> Time.get_datetime_dict_from_system --- editor/project_converter_3_to_4.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp index cb76147a56b..d8ff1e1b6e9 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 ®_container) {