Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: Update blog page date field and date format #21

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

drikusroor
Copy link
Owner

I have made changes to the BlogPage model to update the date field to use DateTimeField instead of DateField. This change allows for more precise timestamp information for blog posts and a better sort order on the index page. Additionally, I have updated the date format in the blog_index_page.html and blog_page.html templates to include the time in addition to the date. This change provides more precise timestamp information for blog posts.

Resolves #17

@naomi-eliasar

This comment was marked as resolved.

@naomi-eliasar
Copy link
Collaborator

When I create a new blog post, the time is set to 04:41, it would be nice if it automatically set it to the current time

@drikusroor
Copy link
Owner Author

When I create a new blog post, the time is set to 04:41, it would be nice if it automatically set it to the current time

It's probably set to some American time (minutes are correct right?).. 😓

@naomi-eliasar

This comment was marked as resolved.

@drikusroor

This comment was marked as resolved.

@naomi-eliasar
Copy link
Collaborator

When I create a new blog post, the time is set to 04:41, it would be nice if it automatically set it to the current time

It's probably set to some American time (minutes are correct right?).. 😓

Maybe yes, the minutes are correct indeed.
But when I check the time in the console, firefox does seem to know it's 11:56, but on the wagtail page it still shows the 04:56.
I don't have a vpn on

You don't experience this issue?

Scherm­afbeelding 2024-07-23 om 11 56 29

@drikusroor
Copy link
Owner Author

drikusroor commented Jul 23, 2024

When I create a new blog post, the time is set to 04:41, it would be nice if it automatically set it to the current time

It's probably set to some American time (minutes are correct right?).. 😓

Maybe yes, the minutes are correct indeed. But when I check the time in the console, firefox does seem to know it's 11:56, but on the wagtail page it still shows the 04:56. I don't have a vpn on

You don't experience this issue?
Scherm­afbeelding 2024-07-23 om 11 56 29

Hmmm... no I don't have that problem :P Maybe we can merge it and deploy it to the test environment and see how it behaves there? Or... maybe restart your server to incorporate the new settings from settings/base.py? 🤔

afbeelding

Update the `date` field in the `BlogPage` model to use `DateTimeField` instead of `DateField`. This change allows for more precise timestamp information for blog posts and a better sort order on the index page.
Update the date format in the `blog_index_page.html` and `blog_page.html` templates to include the time in addition to the date. This change provides more precise timestamp information for blog posts.
@drikusroor drikusroor force-pushed the feat/17-post-date-timestamp branch from 2a8019e to 2a00d23 Compare July 23, 2024 20:40
@drikusroor drikusroor merged commit 260c464 into main Jul 23, 2024
3 of 4 checks passed
@drikusroor drikusroor deleted the feat/17-post-date-timestamp branch July 23, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add timestamp check for blog post order
2 participants