You are here

1 year 52 weeks? o.O

4 posts / 0 new
Last post
Riax
Riax's picture
Offline
Last seen: 9 years 7 months ago
Joined: 2007-09-06 14:41
1 year 52 weeks? o.O

Just for the heck of it, I went and viewed John's forum profile and noticed something.

http://www.simplexitynetwork.com/~blandin/1y52w.png
(Opens in a new window/tab)

That looks like something that could be easily corrected. Something like...

while ($weeks >= 52) {
	$weeks -= 52;
	$years++;
}
Espreon
Espreon's picture
Offline
Last seen: 12 years 4 months ago
Joined: 2006-09-29 18:23
Uh yeah!

Its a thing with Drupal, if you have been registered here for a year (2, 3 and so on), Drupal will still display it as 52 weeks for a bit. So it will correct its self.

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
I think it's a rounding

I think it's a rounding problem, i.e. it will round up to 52 weeks, but not to a year. Just an idea.

Vintage!

Riax
Riax's picture
Offline
Last seen: 9 years 7 months ago
Joined: 2007-09-06 14:41
Hmmm

Pardon If it's going to round the week count, it should round down to the nearest whole integer. If someone has actually been registered for X years, Y weeks, and Z days, it would be more accurate to say that the person has been registered for X years and Y weeks, rather than Y+1 weeks, even if the days value was 6.

Meh, sometimes I think I have OCD; if I see something that I don't think is right, I almost always try to correct it or, if I can't, suggest that it be corrected.

Her song leaves the other side in flight for their lives now;
They are not long for the world.
No one leaves; line up for inevitable wipeout.
All you've done - now it's what you deserve.
Machinae Supremacy ~ Laser Speed Force

Log in or register to post comments