about summary refs log tree commit diff
path: root/src/ui/tasks_page.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tasks_page.rs')
-rwxr-xr-xsrc/ui/tasks_page.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/tasks_page.rs b/src/ui/tasks_page.rs
index 911b005..bdee606 100755
--- a/src/ui/tasks_page.rs
+++ b/src/ui/tasks_page.rs
@@ -20,6 +20,7 @@ use chrono::{DateTime, Duration, Local};
 use gettextrs::*;
 use gtk::subclass::prelude::*;
 use gtk::{glib, prelude::*};
+use libc_strftime::{epoch, strftime_local};
 
 use crate::database::{self, SortOrder, TaskSort};
 use crate::settings_manager;
@@ -87,6 +88,10 @@ impl FurTasksPage {
     pub fn build_task_list(&self) {
         let imp = imp::FurTasksPage::from_instance(&self);
 
+        let now = epoch(); // most likely a u64
+        let local = strftime_local("%h %e", now);
+        println!("On est: {}", local);
+
         let tasks_list = database::retrieve(TaskSort::StartTime, SortOrder::Descending).unwrap();
 
         let mut uniq_date_list: Vec<String> = Vec::new();