[gnote] Do not use deprecated modification_time



commit 6b3235d64b744dd421a2eee2ffe66f68cd04af2d
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun May 2 20:00:55 2021 +0300

    Do not use deprecated modification_time

 src/sharp/fileinfo.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/sharp/fileinfo.cpp b/src/sharp/fileinfo.cpp
index b56baa3f..9fb148b4 100644
--- a/src/sharp/fileinfo.cpp
+++ b/src/sharp/fileinfo.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011-2012,2017,2020 Aurimas Cernius
+ * Copyright (C) 2011-2012,2017,2021 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  * 
  * Permission is hereby granted, free of charge, to any person obtaining a
@@ -62,7 +62,7 @@ namespace sharp {
     Glib::RefPtr<Gio::FileInfo> file_info = Gio::File::create_for_path(path)->query_info(
         G_FILE_ATTRIBUTE_TIME_MODIFIED + Glib::ustring(",") + G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC);
     if(file_info)
-      return Glib::DateTime::create_now_local(file_info->modification_time());
+      return file_info->get_modification_date_time();
     return Glib::DateTime();
   }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]