Jump to content

Change blog post date to include year

Go to solution Solved by paul2009,

Recommended Posts

22 hours ago, JeroenB said:

the date say Mar 20. I want it to say Mar 20, 2020

@JeroenB Are you referring to the date shown beside the title when a single blog post is shown (as highlighted below)? 

ss7.1-blog-post-date.png.3be715571bd2e4b1120f77e6cd978b3b.png

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • Solution

@JeroenB @rosieames I posted a quick guide to help you add the year to Squarespace 7.1 blog posts:

https://sf.digital/squarespace-solutions/date-styles-on-squarespace-71-blog-posts

Let me know how you get on.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Hi Paul,

Thank you so much for tackling this problem. It works like a charm on Chrome and Firefox, however it doesn't go quite right with Safari. The year shows up as NaN, see attachment. Tested it on desktop and mobile with the same results.

Also (and this is extra and nice to have) we noticed that on the blog page (https://www.snakegoddess.com/blog) the date format is off too, it says 03/20/20 instead of Mar 20, 2020 which is used on the other places in the website.

Screenshot 2020-03-25 at 13.52.48.png

Screenshot 2020-03-25 at 13.57.16.png

Link to comment

You're right, thanks for pointing that out. Safari doesn't parse some date formats properly. I've updated the post 😀

 

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
5 minutes ago, paul2009 said:

You're right, thanks for pointing that out. Safari doesn't parse some date formats properly. I've updated the post 😀

 

 

You are a hero! Thank you! Is it a lot of extra trouble to get the date consistent site wide? So to also change it in the /blog page? In my opinion this should be standard to begin with and it's a flaw in the squarespace 7.1 templates.

Link to comment
14 minutes ago, JeroenB said:

In my opinion this should be standard to begin with

I agree Squarespace's priority is (understandably) to develop enough to make it workable and I expect they'll fix these design flaws soon. 

 

18 minutes ago, JeroenB said:

Is it a lot of extra trouble to get the date consistent site wide?

I will follow up on your question about the other date, but it probably won't be today as I'm extremely busy.

Stay safe.

P

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 2 weeks later...
On 3/25/2020 at 2:57 PM, paul2009 said:

 

I will follow up on your question about the other date, but it probably won't be today as I'm extremely busy.

Stay safe.

P

Hi Paul,

I hope you're well. Do you know a solution for the other dates yet?

Link to comment
  • 2 weeks later...
On 4/23/2020 at 5:51 AM, ChrisBartow said:

If you can't change this easily, it should at least default to March 20, 2020. Not sure who picked the short month and day only.

Squarespace started that, so we just followed that to keep it as easy as possible. But yes, you are right.

Link to comment
  • 6 months later...

Hey, y'all. @paul2009 especially. First, thanks for saving all of us with the custom code. Second, do you or anyone know if there's a way for it to just spell out the whole month? As a grammar nerd, it annoys me to see "Oct" and not "Oct." with the period, but could get around that if it just spelled out "October" instead. Not the end of the world, but thought I'd try asking.

Thanks, everyone!

Link to comment
1 hour ago, brandi_sqspace said:

As a grammar nerd, it annoys me to see "Oct" and not "Oct." with the period, but could get around that if it just spelled out "October" instead.

It should be possible 🙂. The formatting is different for the blog list and the blog posts, and it also depends on the site's region settings, so I'd need to see the site to provide specific information.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 9 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.