|
cheers
Chris Maunder
|
|
|
|
|
Here is the problem:
I prepared this article specially for April 1st: Markdown Calculator.
I intentionally waited until today's night and completed all activities on April 1. And yes, it is listed as:
Markdown-Calculator,
Posted: 1 Apr 2021 Updated: 1 Apr 2021 (according to https://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=2291164).
And yet, when I referenced the article and clicked at the link to see how it looks for the reader non-authenticated with CodeProject, it shows: Posted 31 Mar 2021!
The same goes for the page of the article: it shows the correct date, but for a non-authenticated reader it's "31 Mar".
How so? Can it be fixed? Remember, having the publication marked as of April 1st is the point.
Thank you.
—SA
Sergey A Kryukov
|
|
|
|
|
We'll check this out. While annoying, pretty much no one would have seen that article before the great reveal.
But seriously: when are you going to build it?
cheers
Chris Maunder
|
|
|
|
|
The point is having the April 1st mark on the article permanently. I consider it as one of the attributes of all my April 1st articles.
Even if I see a need for a fix, I prepare an update and wait until next April 1st to submit it...
Thank you.
— SASergey A Kryukov
|
|
|
|
|
We do have some magic powers that will allow us to update your article without changing the date...
(Just email us the changes and we'll look after you)
cheers
Chris Maunder
|
|
|
|
|
Thank you for offering me that backdoor. But what I've reported is looks just like a bug.
[EDIT] Could you tell me what date do you see on this article, and what do you see if you log off?
—SASergey A Kryukov
modified 2-Apr-21 1:54am.
|
|
|
|
|
When I'm signed in the system knows my time zone and so I see Apr 1. When I'm not signed in it doesn't, and so the time is off by 5hrs and I see Mar 31.
cheers
Chris Maunder
|
|
|
|
|
Thank you for the answer, Chris. So you confirm that, with your account, you see the same that I can see with mine.
Obviously, the publication date should be the property of the publication, cannot depend on the properties of a reader.
Agree?
Thank you.
—SASergey A Kryukov
|
|
|
|
|
Yes, the publication date is owned by the content item, but it's displayed in the user's local time.
Time is relative...
cheers
Chris Maunder
|
|
|
|
|
Chris,
If you think a bit, you will agree with me. The publication is not a state of a document, it is its attribute characterized by some event in the past. Once defined, it should remain the same for all users.
Otherwise, we would have individual dates for the moment of time when Brutus killed Cesar because it was really different in different parts of the globe. We don't even know what were the time zones at that time. But people don't think this way. They record the event only by one watch, the Rome watch, and the watch existed at that time and that place.
Well, okay, but at least can we return back to your words about the magic power you've mentioned. Is it possible to set the date ad-hoc to appear the same for all users? By the way, it's still a bug: when I log off, my time zone doesn't change, for it should be April 1st in my zone, but it shows March 31. How about it?
—SASergey A Kryukov
|
|
|
|
|
I just did some simple experiments. If I am logged on, I am UTC+11, as expected. (back to +10 in a couple of days!)
If I log out, all the timestamps I looked at seem to place me somewhere mid-Pacific, UTC-10.
I'm guessing that's where SAK seems to be if he logs out too.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Peter,
Thank you for experimenting with this.
Could you do the same thing: look at this article and look at the publication date. Then log off and look at the date again.
Will you tell me what you see?
Apparently, the publication date is just the date of some event. Once defined, it cannot depend on the time anymore.
Let's say, you have a time zone of an author or a time zone of some publishing house. Any of these time zones can affect the effective publication date, but this date, when defined, cannot depend on the point of view, right?
Thank you.
—SASergey A Kryukov
|
|
|
|
|
Logged in, I see it dated 1 April. Logged out, 31 March.
My guess is that it is a timestamp (e.g. Unix date() ), displayed with a date-only format. So if the timestamp were say, 2021-04-01T0100Z (1.00 am, April 1, UTC) that would show as 1 April in my timezone, but 31 March in, say, the USA.
As I noted earlier, it seems that users not logged in are assumed to be somewhere like UTC-10.
Cheers.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Thank you very much, but I don't think it explains the problem or the logic of the implementation. The reader's time zone has nothing to do with the date (time, for that matter) of the publication. A publication is done only in one time zone, one or another, but only one.
Thank you again.
—SASergey A Kryukov
|
|
|
|
|
Which, to my mind, doesn't make any sense as that control (it says "Improve Solution") is clicked because an Answer poster has made a confusing typo in his "Solution" and it's that correction of the typo he made which might un-confuse matters.
I, for one, would choose the "Improve Solution" of the original post to make editorial corrections/clarifications to the questioners typing. And also note that each potential Solution has an "Improve Solution" control in it's thread-part; what would the point be having more than one "Improve Solution" control in the list of various Solutions if they all only point to the original post?
Finally, I submit that it would be appropriate also to change the name of the original poster's "Improve Solution" control text to something like "Editor's Hayrick Sortie" to distinguish it from "Improve Solution" (where clearly there's no solution to improve unless of course the comment of a cpian is in fact the best solution)
[edit]
My bad ... the text in the editor was so thin in my FF browser that I couldn't see it. Move along, nothing to see here ...
[/edit]
modified 31-Mar-21 13:30pm.
|
|
|
|
|
Sounds like a bug. Added.
cheers
Chris Maunder
|
|
|
|
|
... sorry Chris ... and that bug would be me. (see edit)
You pounced so quickly that now I'll never be able to delete this report
|
|
|
|
|
Hi,
I see that my articles have been changed without any revision.
- Random tags appeared in tags section.
Integer Factorization: Dreaded List of Primes[^] is now Objective-C, which have never been.
- the 3 drop boxes are not any more.
- The code samples div do not work as it used to: the tab titles were the languages of each pre tag
<div class="code-samples">
<pre lang="c++">
</pre>
<pre lang="dbase">
</pre>
</div>
Now it says 'Text' and 'Text(2)'
long long TD_BF1(long long Cand) {
Count = 0;
long long Top = Cand - 1;
for (long long Div = 2; Div <= Top; Div++) {
Count++;
if (Cand % Div == 0) {
return Div;
}
}
return Cand;
}
function TD_BF1(Prod)
Local D, Top
Top= Prod-1
for D= 2 to Top
if Prod % D = 0
return D
endif
next
return Prod
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
The hamsters seem to be in the midst of a great overhaul. I just looked at my articles, and all but one (which has no code) been reclassified under a general C++ category. There used to be several subcategories for C++. Judging from current interests on the site, there will only be subcategories for web programming and C#!
The "Copy Code" thing seems to be new too, and there's no sign of the previous "Shrink/Expand" button or whatever it was called. EDIT: False alarm. It's still there but only seems to show up when the code reaches a threshold length.
|
|
|
|
|
Greg Utas wrote: and there's no sign of the previous "Shrink/Expand" button
I see them at usual place, but only on large pieces of code.
Greg Utas wrote: The "Copy Code" thing seems to be new too
It used to be there, but have moved lately.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Just working on this now.
cheers
Chris Maunder
|
|
|
|
|
Hi Chris,
Thanks for the hard work.
Should I change my articles tags ?
How to choose article category in new system ?
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Choose the tags that best reflect what your article is about. We're trying to make things far more intuitive and simple. The worst thing you can do is pick too many tags.
Just keep doing what you're doing. You've got it.
cheers
Chris Maunder
|
|
|
|
|
Article : Integer Factorization: Dreaded List of Primes[^]
I try to change tags from 'C++, Objective-C, algorithm' to 'algorithm, C++', but when publishing, it come back to previous value.
Tried either typing and checking in droplists.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Hi Chris,
I tried to change tags, but still not found how to choose the category of article.
I think it would be nice to have something to choose the category, something that replace the previous 3 droplists.
I see changes of category of some of my articles, so thank you, but I fear one have find another solution than requesting corrections.
1 rather simple solution is to use the first tag of an article as category.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|