[gnote] Remove leftover use of sharp::DateTime
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove leftover use of sharp::DateTime
- Date: Sun, 26 Jan 2020 16:53:13 +0000 (UTC)
commit d242a0d33f57aec95332e512a96c0cf402492516
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Jan 26 17:37:48 2020 +0200
Remove leftover use of sharp::DateTime
src/notebase.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/notebase.cpp b/src/notebase.cpp
index dccb6593..562de686 100644
--- a/src/notebase.cpp
+++ b/src/notebase.cpp
@@ -401,7 +401,7 @@ const Glib::DateTime & NoteBase::metadata_change_date() const
bool NoteBase::is_new() const
{
const NoteDataBufferSynchronizerBase & sync(data_synchronizer());
- return sync.data().create_date() && (sync.data().create_date() > sharp::DateTime::now().add_hours(-24));
+ return sync.data().create_date() && (sync.data().create_date() >
Glib::DateTime::create_now_local().add_hours(-24));
}
void NoteBase::enabled(bool is_enabled)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]