Skip to content

Commit 88c8dc9

Browse files
committed
use to_rfc3339 instead of format
1 parent e95b550 commit 88c8dc9

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

rustytime/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rustytime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rustytime-server"
33
description = "🕒 blazingly fast time tracking for developers"
4-
version = "0.7.0"
4+
version = "0.7.1"
55
edition = "2024"
66
authors = ["ImShyMike"]
77
readme = "../README.md"

rustytime/src/handlers/dashboard.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,8 @@ pub async fn dashboard(
8282
username: user.name,
8383
user_id: user.id,
8484
github_id: session_data.github_user_id,
85-
created_at: user.created_at.format("%Y-%m-%d %H:%M:%S UTC").to_string(),
86-
expires_at: session_data
87-
.expires_at
88-
.format("%Y-%m-%d %H:%M:%S UTC")
89-
.to_string(),
85+
created_at: user.created_at.to_rfc3339(),
86+
expires_at: session_data.expires_at.to_rfc3339(),
9087
api_key: user.api_key.to_string(),
9188
total_heartbeats,
9289
human_readable_total: human_readable_duration(

0 commit comments

Comments
 (0)