#dev | Logs for 2021-02-28

« return
[18:49:08] * Bytram updates the live template on dev
[18:51:04] <Bytram> Template skin: default Template page: admin Template Name: listStories
[18:52:03] <Bytram> right after the output of "story.commentcount"
[18:52:51] <Bytram> BEFORE: <td>[% story.td2 %]
[18:52:51] <Bytram> [% story.time %]</td>
[18:52:57] <Bytram> AFTER:
[18:53:00] <Bytram> <td>[% story.td2 %] &nbsp;|&nbsp;
[18:53:00] <Bytram> [% story.time %]</td>
[18:56:48] <requerdanos> So, I should see "|"
[18:56:59] <Bytram> well! that did NOT work out quite as expected.
[18:57:11] <Bytram> yes, but not where I expected
[18:58:01] <requerdanos> story.td2 seemd to be the date sans year, and story.time seems to be two times for the story
[18:58:03] <Bytram> "story.td2" is JUST the date
[18:58:10] <Bytram> nod nod
[18:58:57] <Bytram> I apparently have things set up in my preferences on dev vs prod
[18:59:25] <Bytram> on dev, the DTS for the first entry shows: 02/13 | 21:54 (09:54PM)
[18:59:52] <requerdanos> here 02/13 | 21:54 (4:54PM)
[19:00:05] <requerdanos> well, ish
[19:00:34] <Bytram> on prod, the DTS for the first entry shows: 03/01 04:57 2021.02.28 23:57
[19:01:14] <requerdanos> first story on production for me shows: 03/01 04:57 (11:57PM)
[19:01:49] <Bytram> Hmmm, yep, must be one of my prefs
[19:02:30] <Bytram> same format is used when I load a story and look at comment DTSs
[19:04:19] <Bytram> requerdanos: I'm curious -- initial thoughts on this change?
[19:05:11] <requerdanos> I could do little more than write high-level pseudocode; I don't know perl.
[19:05:22] <Bytram> np!
[19:05:31] <Bytram> I mean for the changed appearance?
[19:05:47] <Bytram> If it were rolled out, would you be okay with it?
[19:05:50] <requerdanos> (almost) all the information is obviously already there on the page to compute the deltas
[19:06:02] <requerdanos> oh, is it a good proposed change? yes, I sure think so
[19:06:40] <Bytram> I dunno if I *really* need the TWO &nbsp;'s
[19:07:00] <Bytram> lemme yank em for a moment (or three!)
[19:08:23] <Bytram> take a look
[19:08:50] * Bytram likes it better with the &nbsp;'s in there.
[19:10:02] <requerdanos> admin.pl on dev doesn't look as much much like same page on production as one would expect, regardless of the position of the new "|"
[19:10:38] <Bytram> yeah, it's backlevel on somethings and uplevel on others. :/
[19:11:45] <Bytram> on prod I use OMGPwnies for my "style" (or whatever it is called) but I take the defaults on dev.
[19:12:47] <Bytram> requerdanos: do you have a preference? extra space... yes / no / dontcare
[19:13:12] <requerdanos> at least one space, yes
[19:13:24] <Bytram> got it... just a bit
[19:14:25] <Bytram> thought so! I can dispense with the explicit &nbsp;
[19:14:58] <Bytram> PASTE-BEGIN:
[19:14:59] <Bytram> <!-- CHANGE-BEGIN 2021-02-28 18:53:58 UTC -->
[19:14:59] <Bytram> <td>[% story.td2 %] |
[19:14:59] <Bytram> [% story.time %]</td>
[19:14:59] <Bytram> <!-- CHANGE-END 2021-02-28 18:53:58 UTC -->
[19:15:05] <Bytram> PASTE-END
[19:15:38] <requerdanos> calculating deltas needs to happen from the bottom up, it seems to me
[19:16:15] <Bytram> last (oldest / bottom-most) entry will have no delta
[19:20:05] <Bytram> ISTM that a time delta template (that ignores the DATE, and assumes SEQUENTIAL date when DT would otherwise we negative) *should* be relatively easy.
[19:23:36] <requerdanos> sequential date when would otherwise be negative sounds like a recipe for incorrect answers, especially on the mishmash of stories on dev. Is the date not known to the script/template?
[19:23:41] <Bytram> IF (t1 > t2) /* e.g. from t1: 22:14 to t2: 01:31 */ THEN add 24 hours to t2, giving: 25:31 END
[19:24:26] <Bytram> it SEEMS to be, but not clear how to extract that simply.
[19:24:47] <requerdanos> this is why I said "almost enough information" earlier :)
[19:24:58] <Bytram> oh, wait...
[19:25:33] <Bytram> story.dt2
[19:25:40] <Bytram> ^^^ that's the date.
[19:25:57] <requerdanos> well, that's the date formatted some kinda way with no year
[19:26:19] * Bytram is trying to keep it relatively simple
[19:26:30] <Bytram> then there are leap years
[19:26:38] <Bytram> and daylight saving time
[19:26:45] <requerdanos> time math is a known thing, but I am not sure that relatively simple is part of its description.
[19:27:00] <Bytram> requerdanos++ zactly!
[19:27:00] <Bender> karma - requerdanos: 2
[19:28:37] <requerdanos> I must go grocery shopping for a bit.
[19:28:50] <Bytram> but, for what we are doing... as a simplifying assumption... how often do we have a month change? how often a date with NO stories? how often does a DST transition occur>
[19:29:17] <Bytram> for the 98+% of the time, ISTM that this would work?
[19:29:26] <Bytram> nod nod
[19:29:50] <Bytram> prolly time for me to do some errands, too. Thanks so much for your help!
[19:30:49] <requerdanos> I am not sure I've been much help, but hopefully the process moves along.
[19:51:25] <Bytram> Yes, you have! Always good to get a different perspective. I didn't realize there were differently formatted displays of the DTSs -- now, I do. Especially thanks to your offer to help and trying it on dev.