You are not logged in.
I just now created my account after a lot of research on that registration question.
There seems to be a bug. Where i live, it is currently week number 39 on my machine, but its Sunday night and i am UTC-06:00. I tried many different hashes to the question and when i finally answered it right, the only thing i had changed was that i advanced the clock to October 1st so it was week 40.
Offline
Welcome to Arch Linux. Any chance you could post or email me some examples. I would not have expected this bug to show up except on the last day of the month/year.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
It's the last day of a month, so... :-)
Offline
It's the last day of a month, so... :-)
It is now. When I posted (last night) it was not yet the last day of the month here on the West coast of North America; and no part of the world was yet into October.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Your post happened Today 04:58:42 over here (GMT+1 with DST) and the server is in Germany. Dateception?
Offline
Cheesecake, can I have another slice can you please open a bug report? You need a separate account for the bug tracker, so you have to register there too.
Offline
Awebb,
What I am wondering is what happens if someone is in a different month than it is either in Germany or UTC. For example, as I post this, The Western Pacific is into next Month. Europe is not there yet. I'll get there in about 16 hours.
At the time I posted last night, the entire world was still in September. I am having trouble envisioning why the OP had to tweak his date to next month. I want to understand.
Last edited by ewaller (2013-09-30 14:41:42)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
This is what i had tried
d2e084143fcb04ffc0e548123e1f62fc19c5d73906b36e7771a085079cbf4d3c
eedb85ab90d324a555a45560d75c88cecf23721990c3b6353697d707e6465c74
a2c6c14110a317833ac8f2fbae7080ee844af7469b2aa702876548dcf4c588077
6e2ae11dad0616f66bbb2b6e6556f580bb987fd911d7132aa6bee2bfc7cc7b52
b767e3bd870dbdf1a06d1a90e059f490ad024936c5424cd01ada2df947d4783b
cbcce0aff2d5e7dd60e78135b8364c5d1662a870dd9b41f5fd1ff868098b681f
date -u +%W$root|sha256sum|sed 's/\W//g'
date -u +%W$(uname)|sha256sum|sed 's/\W//g'
date -u +%V$root|sha256sum|sed 's/\W//g'
date -u +%V$(uname)|sha256sum|sed 's/\W//g'
and this is what worked (after i had tweaked the date)
date -u +%W$(uname)|sha256sum|sed 's/\W//g'
62bc3e8b1d6ea4e0e676a5bcff5df928d828e96af936be6cc8ff11f00c6ab37b
Awebb,
What I am wondering is what happens if someone is in a different month than it is either in Germany or UTC. For example, as I post this, The Western Pacific is into next Month. Europe is not there yet. I'll get there in about 16 hours.
At the time I posted last night, the entire world was still in September. I am having trouble envisioning why the OP had to tweak his date to next month. I want to understand.
I changed the date to the first of next month because it was in the next week. I assume i could have picked any day from September 30 to October 6 but i picked a day closer to the middle of the week to be on the safe side.
Last edited by Cheesecake (2013-09-30 17:43:25)
Offline
I thought so, I always asked myself, why October was the important part, but I dismissed the thought as "better safe than child support".
Offline
I currently get week 39 - not week 40 - even though it is October 6th. Am I missing something?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
@Cheesecake
It used to be %W but https://bugs.archlinux.org/task/32649
Offline
I currently get week 39 - not week 40 - even though it is October 6th. Am I missing something?
From man date:
%U week number of year, with Sunday as first day of week (00..53)
%V ISO week number, with Monday as first day of week (01..53)
%W week number of year, with Monday as first day of week (00..53)
%V returns 40.
Shouldn't all machines return the same value because of the -u flag, regardless of local settings? Assuming the user set his time zone right. I don't understand why you expect a problem at the end of a month.
Offline
$ date -u
Sun Oct 6 00:56:22 UTC 2013
$ date -u +%V
40
cfr, please post your output.
Edit: Typo.
Last edited by karol (2013-10-06 01:14:16)
Offline
It's because the posts above (mostly) used %W not %V. I get the expected results with %V.
$ date -u
Sul 6 Hyd 01:01:29 UTC 2013
$ date -u +%V
40
EDIT: I also don't understand quite why failures are expected given that the -u flag is passed.
Last edited by cfr (2013-10-06 01:03:29)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
cfr wrote:I currently get week 39 - not week 40 - even though it is October 6th. Am I missing something?
From man date:
%U week number of year, with Sunday as first day of week (00..53) %V ISO week number, with Monday as first day of week (01..53) %W week number of year, with Monday as first day of week (00..53)
%V returns 40.
Shouldn't all machines return the same value because of the -u flag, regardless of local settings? Assuming the user set his time zone right. I don't understand why you expect a problem at the end of a month.
the server is in Germany right?
when i posted this
Germany early Monday morning
US late Sunday night
Germany %W ==> 40
US %W ==> 39
Germany %U ==> 40
US %U ==> 40
because it was on Sunday night the %U would have made it work for me in the US and maybe this was what i was supposed to do. But, I first thought the server used %W and the only problem was because his hash was different from mine because he was in a different week.
If i was supposed to use %U then that just delays the problem to Saturday night registering people.
Germany early Sunday morning
US late Saturday night
Germany %W ==> 39
US %W ==> 39
Germany %U ==> 40
US %U ==> 39
Offline
Right. But the question is why the -u flag doesn't avoid that problem.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Hello there,
Could someone be so kind and give some tipps on the solution OR point out the answer?
A friend of mine, familar with linux but having some problems with the configuarion of arch, is trying to get into the .org forums of archlinux because the dotDE aren't that active.
And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...
Offline
And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...
Offline
gpunkt wrote:And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...
the question is %W(andsoon) at the moment but it should be %V as we've worked out... but maybe it's part of the question.
I can understand this action against spammers but the question should work.
Last edited by gpunkt (2013-10-23 16:22:38)
Offline
karol wrote:gpunkt wrote:And second question: WHY is this question there in the first place? to scare of newbies? This question wasn't there back when I joined, it seems the forum wants to be "elite"...
the question is %W(andsoon) at the moment but it should be %V as we've worked out... but maybe it's part of the question.
I can understand this action against spammers but the question should work.
Offline
Some people still have problems with registering: https://bugs.archlinux.org/task/37630
Is there a way I can help with this?
There's also a chance that people are having issues with copy-pasting and not with the forum registration question itself.
Offline
That bug was because the author didn't have his UTC set correctly and was running it right before the week switched. Because of that, it was giving him the wrong week number. Completely user error and would only be a problem for a few hours a week anyway.
Last edited by Scimmia (2013-11-06 17:22:30)
Offline
That bug was because the author didn't have his UTC set correctly and was running it right before the week switched. Completely user error.
I got the same answer as he did and I run
date -u +%V$(uname)|sha256sum|sed 's/\W//g'
minutes after he posted the report.
How can I make sure I have UTC set correctly?
Offline
There's also a chance that people are having issues with copy-pasting and not with the forum registration question itself.
That bug was because the author didn't have his UTC set correctly and was running it right before the week switched. Completely user error.
Overall, it seems to be working...
Offline
timedatectl should tell you what UTC is. As of right now, current is "Wed 2013-11-06 17:24:41 UTC"
Offline