1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Use Time singleton in VersionControlEditorPlugin

Instead of displaying the exact string, now Godot uses the Time
singleton to calculate the date string from the UTC Unix timestamp and
also uses Time's timezone offset conversion to string function
This commit is contained in:
ChronicallySerious
2022-02-24 04:00:29 +05:30
parent 4739c821dc
commit 9e978bf989
5 changed files with 27 additions and 11 deletions

View File

@@ -186,6 +186,7 @@ private:
void _commit_message_gui_input(const Ref<InputEvent> &p_event);
void _extra_option_selected(int p_index);
bool _is_staging_area_empty();
String _get_date_string_from(int64_t p_unix_timestamp, int64_t p_offset_minutes) const;
friend class EditorVCSInterface;