]> git.za3k.com Git - blog.git/commitdiff
Order within a day
authorZachary Vance <za3k@za3k.com>
Fri, 8 Nov 2024 04:20:29 +0000 (23:20 -0500)
committerZachary Vance <za3k@za3k.com>
Fri, 8 Nov 2024 04:20:29 +0000 (23:20 -0500)
blog
posts/home-automation.md
posts/lembas.md
posts/mealsquares.md
posts/sunchart.md

diff --git a/blog b/blog
index 33e4e2b42edf39fbd41a705b86567f3579957f69..9125499152c54df16dd7f713be3093c0a4126202 100755 (executable)
--- a/blog
+++ b/blog
@@ -181,7 +181,12 @@ class Post(Templatable):
                 k = "_" + k
             if isinstance(v, datetime.date):
                 tz = zoneinfo.ZoneInfo(blog.timezone)
-                time = datetime.time(18,0,0)
+                
+                if hasattr(v, "time"):
+                    time = v.time()
+                else:
+                    time = datetime.time(18,0,0)
+                print(parsed["title"], v, time)
                 v = datetime.datetime.combine(v, time, tz)
             self[k] = v
         self.post_title = self.title # Avoids a dumb thing with str.title in a template
index 32f83337041fb7faf2043b466edcf011797d91a0..3b641d3b645d8e734e5b788faa4e3725bc5cb363 100644 (file)
@@ -2,7 +2,7 @@
 author: admin
 categories:
 - Technical
-date: 2024-11-07
+date: 2024-11-07 18:00:00
 tags:
 - data logging
 - home automation
index 19c1fc15c732690926f470cfe065a5146542e137..85f9c6e49009afd49534ee55f052aae2ed38ad1d 100644 (file)
@@ -2,7 +2,7 @@
 author: admin
 categories:
 - Non-Technical
-date: 2024-11-04
+date: 2024-11-04 18:01:00
 tags:
 - hack-a-day
 - cooking
index 908ba1c12183493227f1ad7bb6b0f8339d80b19d..268ba3a491fa2e097340926a20320f3894976a79 100644 (file)
@@ -2,7 +2,7 @@
 author: admin
 categories:
 - Non-Technical
-date: 2024-11-07
+date: 2024-11-04 18:00:00
 tags:
 - cooking
 title: 'Meal Squares 1.0 Recipe'
index 046d81640c0aadfd04726b732d93fe89b26c2af1..290363ca5fd297df2b04363f76f21d8c2cc88826 100644 (file)
@@ -2,7 +2,7 @@
 author: admin
 categories:
 - Technical
-date: 2024-11-07
+date: 2024-11-07 18:01:00
 tags:
 - hack-a-day
 title: 'Hack-a-Day, Day 07: When Does the Sun Come Back?'