[gnote] Update test to not use sharp::DateTime
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update test to not use sharp::DateTime
- Date: Sat, 25 Jan 2020 13:43:09 +0000 (UTC)
commit 8f80dd8416540bc9d69930b93aa833d097185a34
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Jan 25 15:40:46 2020 +0200
Update test to not use sharp::DateTime
src/test/testnotemanager.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/test/testnotemanager.cpp b/src/test/testnotemanager.cpp
index 291e8582..6dcb6988 100644
--- a/src/test/testnotemanager.cpp
+++ b/src/test/testnotemanager.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2014,2017,2019 Aurimas Cernius
+ * Copyright (C) 2014,2017,2019-2020 Aurimas Cernius
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -43,7 +43,7 @@ gnote::NoteBase::Ptr NoteManager::note_create_new(const Glib::ustring & title, c
{
auto note_data = std::make_unique<gnote::NoteData>(gnote::NoteBase::url_from_path(file_name));
note_data->title() = title;
- sharp::DateTime date(sharp::DateTime::now());
+ Glib::DateTime date(Glib::DateTime::create_now_local());
note_data->create_date() = date;
note_data->set_change_date(date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]