aboutsummaryrefslogtreecommitdiff
path: root/src/app/impl_self.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-23 05:36:34 +0100
committerAkshay <[email protected]>2020-07-23 05:36:34 +0100
commitf5940ea5fc507ec34d686a888a1aa1aba50be277 (patch)
tree727364b871f5bbc6fb7c167cd21cbea33d3b52f9 /src/app/impl_self.rs
parent5c910bc6cf193725575ef6146dcc8620e7a4a800 (diff)
fix tiemzones in statusline
Diffstat (limited to 'src/app/impl_self.rs')
-rw-r--r--src/app/impl_self.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/impl_self.rs b/src/app/impl_self.rs
index cf0e97f..1ed19e6 100644
--- a/src/app/impl_self.rs
+++ b/src/app/impl_self.rs
@@ -128,7 +128,7 @@ impl App {
128 let completed = total - remaining; 128 let completed = total - remaining;
129 129
130 let timestamp = if self.view_month_offset == 0 { 130 let timestamp = if self.view_month_offset == 0 {
131 format!("{}", Local::now().date().format("%d/%b/%y"),) 131 format!("{}", Local::now().naive_local().date().format("%d/%b/%y"),)
132 } else { 132 } else {
133 let months = self.view_month_offset; 133 let months = self.view_month_offset;
134 format!("{}", format!("{} months ago", months),) 134 format!("{}", format!("{} months ago", months),)