octothorpe Posted December 30, 2021 Share Posted December 30, 2021 * What you were doing when the issue happened I was using a snippet I have which pastes in the current date in YYYY-MM-DD format. Instead of pasting "2021-12-30" as expected, it pasted "2022-12-30" A snippet I have that uses {date:full} pastes in the correct date "Thursday, December 30, 2021" Been using these snippets for at least a couple years without issue. * Whether you were able to replicate it a second time by performing the same action Yes. It occurs with any snippet I have set up that uses {date:YYYY} or {date:YY} * Include any screenshots that might help us see below * Include the Alfred version & build number you are using Alfred 4.6.1 * Include your macOS version macOS 12.1 * Troubleshooting steps I've taken - checked the system clock in the Date & Time preferences (it was correct) - quit and re-opened Alfred Link to comment
roosterboy Posted December 30, 2021 Share Posted December 30, 2021 You should be using yyyy, not YYYY. YYYY specifies the ISO "week of year", whereas yyyy specifies the calendar year. octothorpe 1 Link to comment
octothorpe Posted December 30, 2021 Author Share Posted December 30, 2021 Well, that was a quick and easy fix, thanks much! I suppose this thread should be moved elsewhere since it was a case of simple misconfiguration. Link to comment
deanishe Posted December 30, 2021 Share Posted December 30, 2021 1 hour ago, octothorpe said: Well, that was a quick and easy fix, thanks much! I suppose this thread should be moved elsewhere since it was a case of simple misconfiguration. Kinda. YYYY should also be 2021 until Monday, and it is on my machine. Link to comment
octothorpe Posted December 30, 2021 Author Share Posted December 30, 2021 8 minutes ago, deanishe said: Kinda. YYYY should also be 2021 until Monday, and it is on my machine. In my Date & Time settings, the week is set to start on Monday instead of Sunday -- maybe that has something to do with it? Link to comment
deanishe Posted December 30, 2021 Share Posted December 30, 2021 2 minutes ago, octothorpe said: maybe that has something to do with it? It shouldn't: the appropriate standard also starts the week on Monday. AFAIK, starting the week on a Sunday is another one of those bizarre Americanisms. Other people don't do it that way. Link to comment
octothorpe Posted December 30, 2021 Author Share Posted December 30, 2021 3 minutes ago, deanishe said: It shouldn't: the appropriate standard also starts the week on Monday. AFAIK, starting the week on a Sunday is another one of those bizarre Americanisms. Other people don't do it that way. Weird. I don't recall having had this problem last year, but it's possible I just didn't notice. (I'm in the US, but I've never understood starting the calendar week on Sunday when the work and school week, for most, starts on Monday.) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now