Jump to content

Choosing a Blog Post Entry Publish Date with a Year Earlier than 1900

Recommended Posts

The website I am working on is displaying historical documents (such as the Declaration of Independence) for educational purposes. Each blog post displays a different document. I am trying to get all the documents in chronological order, so I am making each the date of each blog entry match the date of the document. 
 
This has been working fine, using @Beyondspace's code (https://beyondspace-showcase.squarespace.com/blog-publish-datepicker) to manually choose a blog entry date, until I notice that the earliest year on the 'datepicker' is 1900. Do you know of any way that I can choose an earlier date? (For example the Declaration of Independence date is July 4, 1776.) Is there a code I can inject into Squarespace that will give me the ability to change the date earlier than 1900? 
 
I do not have any background on coding at all and I am not finding any similar queries on any of the Squarespace forums which is making this endeavor very difficult, so any help would be much appreciated!! 
 
If you are unsure about my question but you know someone I could reach out to that might be able to help me please let me know. Or if you have any alternative ideas on how I can arrange my blog posts into chronological order that would be super helpful. 
 
Thank you so so much. 
Link to comment
5 hours ago, User1776 said:
The website I am working on is displaying historical documents (such as the Declaration of Independence) for educational purposes. Each blog post displays a different document. I am trying to get all the documents in chronological order, so I am making each the date of each blog entry match the date of the document. 
 
This has been working fine, using @Beyondspace's code (https://beyondspace-showcase.squarespace.com/blog-publish-datepicker) to manually choose a blog entry date, until I notice that the earliest year on the 'datepicker' is 1900. Do you know of any way that I can choose an earlier date? (For example the Declaration of Independence date is July 4, 1776.) Is there a code I can inject into Squarespace that will give me the ability to change the date earlier than 1900? 
 
I do not have any background on coding at all and I am not finding any similar queries on any of the Squarespace forums which is making this endeavor very difficult, so any help would be much appreciated!! 
 
If you are unsure about my question but you know someone I could reach out to that might be able to help me please let me know. Or if you have any alternative ideas on how I can arrange my blog posts into chronological order that would be super helpful. 
 
Thank you so so much. 

I'd look into it

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment

What is your earliest date? I can try to extend the minimum date to the start of the Calendar, eg: Sat Jan 01 0000, but then some problem arise:

The current Squarespace dateformat use short year format, so year 0000 will lead to 00, this may lead to misunderstand of year 2000. 

In this screenshot, the date is selected as 0157, but it will display as 57, make the impression of 1957

image.thumb.png.333170534f93bbcc3e38316b7d56c7d7.png

I tried with year 1000, same issue happens

image.thumb.png.69bd67411eb1752e155865e1fe9672d4.png

Another issue with the time slider:

Since Squarespace is based on Unix timestamp, therefore if you select before January 1, 1970, UTC, the time slider will be disabled. But this issue can be fixed by select the current date (after 1970) - change the time slider - switch to the correct date you want

Conclusion

So I think you can exceed the limit of past dates before 1900, but then you need to implement a solution to display the date correctly

image.thumb.png.e5434111db6d3d1b88d8a4e83851e4b5.png

let me know what you think

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment

More thoughts, if you are looking for display a historical timeline for educational purpose, check out this free solution, it supports events storing using Google Spreadsheet

https://timeline.knightlab.com/#examples

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
  • 2 weeks later...
Posted (edited)

@Beyondspace

On 7/11/2024 at 11:43 PM, Beyondspace said:

What is your earliest date? I can try to extend the minimum date to the start of the Calendar, eg: Sat Jan 01 0000, but then some problem arise:

The current Squarespace dateformat use short year format, so year 0000 will lead to 00, this may lead to misunderstand of year 2000. 

In this screenshot, the date is selected as 0157, but it will display as 57, make the impression of 1957

image.thumb.png.333170534f93bbcc3e38316b7d56c7d7.png

I tried with year 1000, same issue happens

image.thumb.png.69bd67411eb1752e155865e1fe9672d4.png

Another issue with the time slider:

Since Squarespace is based on Unix timestamp, therefore if you select before January 1, 1970, UTC, the time slider will be disabled. But this issue can be fixed by select the current date (after 1970) - change the time slider - switch to the correct date you want

Conclusion

So I think you can exceed the limit of past dates before 1900, but then you need to implement a solution to display the date correctly

image.thumb.png.e5434111db6d3d1b88d8a4e83851e4b5.png

let me know what you think

@Beyondspace Ohh I see what you are saying. The earliest date is with the year 1700, do you think that would work? I don't have the dates displayed on the blog posts so maybe this wouldn't be an issue for me? Is there some sort of code I could inject to try that out on my site and I could let you know if it works? 

Edited by User1776
(corrected the date)
Link to comment
On 7/11/2024 at 11:43 PM, Beyondspace said:

Since Squarespace is based on Unix timestamp, therefore if you select before January 1, 1970, UTC, the time slider will be disabled. But this issue can be fixed by select the current date (after 1970) - change the time slider - switch to the correct date you want

 

@Beyondspace Hi -- thank you so much for the help!! I'm a little confused about what you mean. I tried following the steps you laid out, but when I click through the time slider, the earliest date is still 1900. Did you change part of the code? Thanks again I really really appreciate the help!! 

Link to comment

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.