Add Time singleton
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "core/os/file_access.h"
|
||||
#include "core/os/keyboard.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/os/time.h"
|
||||
#include "core/string/print_string.h"
|
||||
#include "core/string/translation.h"
|
||||
#include "core/version.h"
|
||||
@@ -2823,7 +2824,7 @@ void EditorNode::_request_screenshot() {
|
||||
}
|
||||
|
||||
void EditorNode::_screenshot(bool p_use_utc) {
|
||||
String name = "editor_screenshot_" + OS::get_singleton()->get_iso_date_time(p_use_utc).replace(":", "") + ".png";
|
||||
String name = "editor_screenshot_" + Time::get_singleton()->get_datetime_string_from_system(p_use_utc).replace(":", "") + ".png";
|
||||
NodePath path = String("user://") + name;
|
||||
_save_screenshot(path);
|
||||
if (EditorSettings::get_singleton()->get("interface/editor/automatically_open_screenshots")) {
|
||||
|
||||
Reference in New Issue
Block a user