Register - Login
Views: 99801291
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 06:49:40 AM
Jul - Meta - Posted on VS Last edited New poll - New thread - New reply
Next newer thread | Next older thread
Orlandu


Holy SwordsMan
Level: 137


Posts: 3488/5913
EXP: 30478712
For next: 394143

Since: 01-12-10

From: Las Vegas, NV

Since last post: 4.0 years
Last activity: 208 days

Posted on 10-11-10 08:21:59 PM (last edited by Orlandu at 10-11-10 05:29 PM) Link | Quote
The "Posted on" time shows your time zone, but the "Last edited" shows the boards default time (EST). Just thought I'd point it out, its insignificant and you probably already know.

edit: case in point

Posted on 10-11-10 02:21:59 PM (last edited by Orlandu at 10-11-10 05:22 PM)

edit: nevermind, I found the answer... guess I should have thought to check back a few pages before making a thread. But couldn't the time functions be the same? Why not use the posted on time function for the last edited function?

____________________
 
Xkeeper

Level: 263


Posts: 17910/25353
EXP: 297140775
For next: 1819678

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 1 hour

Posted on 10-11-10 09:56:34 PM Link | Quote
The edited time is stored as a text string (literally what you see there).

Making it timezone-offset would require reworking the whole thing.

____________________
Orlandu


Holy SwordsMan
Level: 137


Posts: 3490/5913
EXP: 30478712
For next: 394143

Since: 01-12-10

From: Las Vegas, NV

Since last post: 4.0 years
Last activity: 208 days

Posted on 10-11-10 10:43:31 PM (last edited by Orlandu at 10-11-10 07:45 PM) Link | Quote
I'm guessing the code is still similar to the old copy of the board that I have but this one used to put it in the signature:


$sign.="$smallfont"."(edited by $username on ".date("m-d-y h:i A",ctime()).")</font>";



So couldn't you set it to something like this:


$edittime=ctime() - $user[timezone] * 60 * 60;

$sign.="$smallfont"."(edited by $username on ".date("m-d-y h:i A",$edittime).")</font>";



____________________
 
Taryn

Passed away.

Thanks for being a part of us, even if it wasn't always on the best of terms.

1987-2014


Level: 204


Posts: 9702/14742
EXP: 121745737
For next: 1604081

Since: 09-01-09

From: Seattle

Since last post: 10.1 years
Last activity: 9.8 years

Posted on 10-11-10 11:13:14 PM Link | Quote
I think that would have everyone's edits show up as their own time zone. Like, my edits would show PST for everyone, but Anya's would show EST, Zero One's would show GMT, Sanky's would show CET, etc. That would be a bit more confusing.

How about just adding an "EST" or "GMT-5" to the string? That way, people in other time zones will just know to convert to their time zone.

____________________

TKB Super Mario Bros.TKB Super Mario Bros., Volume II
Xkeeper

Level: 263


Posts: 17911/25353
EXP: 297140775
For next: 1819678

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 1 hour

Posted on 10-11-10 11:16:45 PM Link | Quote
That is (and has been for the last several years) on the to-do list (rather, a mass update changing the format to something more sensical, since it really wasn't meant for this)


Probably fixed sometime in 2019.

____________________
Post 1176/1311 (41 days), online 1 day ago
Posted on 10-11-10 11:20:08 PM Link | Quote




#55
- Add "last edited" and "last edited by" fields for posts (0 by default)
- Update them whenever the post is edited
- Show the edit next to "Posted on" (unless it's at 0), using the timezone

I didn't do it that way since it listed all edits (it'd need a separate table for post edits, or store lists in a field), but only the last one is shown here already

____________________
Xkeeper

Level: 263


Posts: 17912/25353
EXP: 297140775
For next: 1819678

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 1 hour

Posted on 10-11-10 11:22:22 PM Link | Quote
Originally posted by Milly
- Add "last edited" and "last edited by" fields for posts (0 by default)
- Update them whenever the post is edited
- Show the edit next to "Posted on" (unless it's at 0), using the timezone

I didn't do it that way since it listed all edits (it'd need a separate table for post edits, or store lists in a field), but only the last one is shown here already

Yeah, but that adds another left join and well blerugh.

Effort.

____________________
Taryn

Passed away.

Thanks for being a part of us, even if it wasn't always on the best of terms.

1987-2014


Level: 204


Posts: 9705/14742
EXP: 121745737
For next: 1604081

Since: 09-01-09

From: Seattle

Since last post: 10.1 years
Last activity: 9.8 years

Posted on 10-11-10 11:32:41 PM Link | Quote
Does AcmlmBoard still not properly handle or allow half-hour offsets? That seems simple to fix, just make the field a float or decimal type

____________________

TKB Super Mario Bros.TKB Super Mario Bros., Volume II
Xkeeper

Level: 263


Posts: 17913/25353
EXP: 297140775
For next: 1819678

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 1 hour

Posted on 10-11-10 11:37:35 PM Link | Quote
Originally posted by Terra
Does AcmlmBoard still not properly handle or allow half-hour offsets? That seems simple to fix, just make the field a float or decimal type

Have you ever, er, tried?

____________________
Taryn

Passed away.

Thanks for being a part of us, even if it wasn't always on the best of terms.

1987-2014


Level: 204


Posts: 9706/14742
EXP: 121745737
For next: 1604081

Since: 09-01-09

From: Seattle

Since last post: 10.1 years
Last activity: 9.8 years

Posted on 10-11-10 11:40:18 PM Link | Quote
Nah, I never have been in such a time zone, but in the profile it doesn't seem to show up right. Unless I was wrong about Darkdata's time zone and he's not in a half offset. But it seems to just show some kind of full offset.

____________________

TKB Super Mario Bros.TKB Super Mario Bros., Volume II
Lyskar
12210
-The Chaos within trumps the Chaos without-
Level: 192


Posts: 6663/12211
EXP: 99321038
For next: 552533

Since: 07-03-07

From: 52-2-88-7

Since last post: 7.4 years
Last activity: 7.3 years

Posted on 10-12-10 01:57:00 AM Link | Quote
Stats
Time/Date
10-11-10 07:57:00 PM
Posts
6663
Days Here
1196
Level
119
Metal_Man88's Post
Yeah, the board's full of annoying things like this. It was hard enough removing all traces of stealable cookies on my own board.

____________________

Eisnaught - SSQ² - Mobius Roleplay - SSS
Aerakin
Ye Olde Layout
Level: 98


Posts: 2163/2550
EXP: 9475887
For next: 178466

Since: 07-06-07

From: From the future

Since last post: 8.0 years
Last activity: 1.2 years

Posted on 10-12-10 11:25:04 AM Link | Quote
Or simply:



$date = explode(" ", $edits)



Simple as hell, because you know that the date HAS to be the last two three elements of the array.

Which isn't that hard to find, really (hell, array_pop() would do it, some stuff with count() too, etc)

Just my idea of a solution.
Zero One
5170
And as we fall the spirit carries on,
That a hero'll come and save us all,
As we call the ones we left below,
We all dream of the day we rise above
Level: 129


Posts: 1726/5173
EXP: 24571698
For next: 477956

Since: 05-24-10

From: Delta Quadrant

Since last post: 1.6 years
Last activity: 130 days

Posted on 10-12-10 12:08:28 PM Link | Quote
Originally posted by Xkeeper
That is (and has been for the last several years) on the to-do list (rather, a mass update changing the format to something more sensical, since it really wasn't meant for this)


Probably fixed sometime in 20,019.


Fixed that for you.

____________________
"The last Metroid is in captivity."
And yet, the galaxy is STILL fucked.
Thanks Xkeeper, Bagel and Sanky for the help!
Sanqui
2060
💛🤍💜🖤🦉
Level: 87


Posts: 481/2066
EXP: 6311255
For next: 81519

Since: 12-20-09

Pronouns: any ✨
From: Czechia | Estonia

Since last post: 14 days
Last activity: 22 hours

Posted on 10-12-10 05:06:09 PM Link | Quote
As we're talking about time I would like to suggest displaying dates in the "YY-MM-DD hh:mm:ss" format as it is far more intuitive then "MM-DD-YY hh:mm:ss (am)/(pm)" and would greatly reduce my confusion and bumps of old topics! Thank you!

____________________
 
Xkeeper

Level: 263


Posts: 17924/25353
EXP: 297140775
For next: 1819678

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 1 hour

Posted on 10-12-10 05:09:06 PM Link | Quote
Originally posted by Aerakin
Or simply:



$date = explode(" ", $edits)



Simple as hell, because you know that the date HAS to be the last two three elements of the array.

Which isn't that hard to find, really (hell, array_pop() would do it, some stuff with count() too, etc)

Just my idea of a solution.

substr() with a negative start value would probably work better (the string always ends with "10-11-10 07:45 PM)")...

As for a date format change, there was a plan to make it user configurable overall (input your own date() string type thing) but that kind of fell apart when I realized the date format is actually hard coded in a few points. There's a real timeformat/dateformat thing but they're off in space.

____________________
Lyskar
12210
-The Chaos within trumps the Chaos without-
Level: 192


Posts: 6670/12211
EXP: 99321038
For next: 552533

Since: 07-03-07

From: 52-2-88-7

Since last post: 7.4 years
Last activity: 7.3 years

Posted on 10-12-10 08:05:03 PM Link | Quote
Stats
Time/Date
10-12-10 02:05:03 PM
Posts
6670
Days Here
1197
Level
119
Metal_Man88's Post
Now of course, there is a PHP function to take in a string and turn it into a neat and handy unix timestamp, buuuut the problem is that hardcoded stuff Xk mentioned earlier.

And the way stuff is spread everywhere in general. *Shrug*

____________________

Eisnaught - SSQ² - Mobius Roleplay - SSS
Next newer thread | Next older thread
Jul - Meta - Posted on VS Last edited New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

28 database queries.
Query execution time: 0.083722 seconds
Script execution time: 0.039413 seconds
Total render time: 0.123135 seconds