Commit d8d4b082 authored by Jordan Petridis's avatar Jordan Petridis 🌱

EpisodeWidget: Trim date label to avoid date/title miss alignment on single digit dates.

parent 65a2d666
......@@ -151,9 +151,10 @@ impl EpisodeWidget {
let now = Utc::now();
let date = Utc.timestamp(i64::from(epoch), 0);
if now.year() == date.year() {
self.date.set_text(&date.format("%e %b").to_string());
self.date.set_text(&date.format("%e %b").to_string().trim());
} else {
self.date.set_text(&date.format("%e %b %Y").to_string());
self.date
.set_text(&date.format("%e %b %Y").to_string().trim());
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment