[gnote] Switch printnotes from sharp::DateTime to Glib::DateTime
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Switch printnotes from sharp::DateTime to Glib::DateTime
- Date: Wed, 22 Jan 2020 20:41:27 +0000 (UTC)
commit c500850a954f109377cb56481f1eb8fb4621e728
Author: Aurimas Černius <aurisc4 gmail com>
Date: Wed Jan 22 22:41:04 2020 +0200
Switch printnotes from sharp::DateTime to Glib::DateTime
src/addins/printnotes/printnotesnoteaddin.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/printnotes/printnotesnoteaddin.cpp b/src/addins/printnotes/printnotesnoteaddin.cpp
index b38cd263..8e485e78 100644
--- a/src/addins/printnotes/printnotesnoteaddin.cpp
+++ b/src/addins/printnotes/printnotesnoteaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010-2013,2015-2017,2019 Aurimas Cernius
+ * Copyright (C) 2010-2013,2015-2017,2019-2020 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -25,7 +25,6 @@
#include <gtkmm/image.h>
#include <gtkmm/printoperation.h>
-#include "sharp/datetime.hpp"
#include "debug.hpp"
#include "iactionmanager.hpp"
#include "notetag.hpp"
@@ -283,7 +282,7 @@ namespace printnotes {
Glib::RefPtr<Pango::Layout>
PrintNotesNoteAddin::create_layout_for_timestamp(const Glib::RefPtr<Gtk::PrintContext> & context)
{
- Glib::ustring timestamp = sharp::DateTime::now().to_string("%c");
+ Glib::ustring timestamp = sharp::date_time_to_string(Glib::DateTime::create_now_local(), "%c");
Glib::RefPtr<Pango::Layout> layout = context->create_pango_layout ();
Pango::FontDescription font_desc = get_window()->editor()->get_pango_context()->get_font_description();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]