summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-25 20:02:25 -0500
committerpommicket <pommicket@gmail.com>2023-01-25 20:02:25 -0500
commit8d7f51d70319b84627ed27cd8eb7b8f48fc2cb43 (patch)
tree8352fee10b782dd0bad8472c47463595dd62d7f1
parentf32e7c966f9b0de785e3e63a25de7db84d8016d5 (diff)
use local time for screenshot file names
oops lol
-rw-r--r--.gitignore2
-rw-r--r--src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 22756b4..d3b58b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
target
tags
-screenshots
+screenshots*
*.swp
*.out
*.dll
diff --git a/src/main.rs b/src/main.rs
index bd3dc74..4403252 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -598,7 +598,7 @@ impl State {
// there isnt anything to save . why did you set the scale so small...
return Ok(());
}
- let time = Utc::now();
+ let time = Local::now();
let filename = time
.format("screenshots/autosdf-%Y-%m-%d-%H-%M-%S.png")
.to_string();