News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

[bug] Calendar & Birthdays

Started by Kirby, December 05, 2004, 10:57:39 PM

Previous topic - Next topic

Kirby

If someone's birthday is in the current year - the calendar will accurately show the age that the person will become on that day. However - if the birthday is on the next year - the calendar will show the age they are now.
Bug, maybe?

[Unknown]

I just checked the calendar and my age is shown correctly for this year, the last year, and the new two years.

I don't understand the problem.

-[Unknown]

Kirby

EDIT: Nvm *locks topic*
Misread the calendar :P
Guess I should search more before I post next time.

md80forum

Agree with Kirby there. The bug appears as described, but only in the Birthday Alert on the main page. In the Calendar it appears correctly.

My birthday is 1 Jan, 2005. Today the forum's Main Page Alert says I will turn 42 (wrong), while the calendar says 43 (correct).

Jan-Erik

Tohelo

Quote from: md80forum on December 26, 2004, 06:52:29 AMAgree with Kirby there. The bug appears as described, but only in the Birthday Alert on the main page. In the Calendar it appears correctly.

My birthday is 1 Jan, 2005. Today the forum's Main Page Alert says I will turn 42 (wrong), while the calendar says 43 (correct).

Same thing on my forum. I am using SMF 1.0 RC2.

Week numbers are also wrong. This year there are 53 weeks... at least in Finnish calendar.

[Unknown]

Quote from: Tohelo on December 26, 2004, 11:28:52 AM
Quote from: md80forum on December 26, 2004, 06:52:29 AMAgree with Kirby there. The bug appears as described, but only in the Birthday Alert on the main page. In the Calendar it appears correctly.

My birthday is 1 Jan, 2005. Today the forum's Main Page Alert says I will turn 42 (wrong), while the calendar says 43 (correct).

Same thing on my forum. I am using SMF 1.0 RC2.

I did actually find this problem, it's caused by showing next year's birthdays on this year's calendar.  IT's been fixed.

QuoteWeek numbers are also wrong. This year there are 53 weeks... at least in Finnish calendar.

That's the kicker; on YOUR calendar.  Investigation has shown that it depends very strongly on that, which is going to complicate things....

-[Unknown]

mike87

Quote from: [Unknown] on December 26, 2004, 11:46:06 AM
Quote from: Tohelo on December 26, 2004, 11:28:52 AM
Quote from: md80forum on December 26, 2004, 06:52:29 AMAgree with Kirby there. The bug appears as described, but only in the Birthday Alert on the main page. In the Calendar it appears correctly.

My birthday is 1 Jan, 2005. Today the forum's Main Page Alert says I will turn 42 (wrong), while the calendar says 43 (correct).

Same thing on my forum. I am using SMF 1.0 RC2.

I did actually find this problem, it's caused by showing next year's birthdays on this year's calendar.  IT's been fixed.
The bug is still in the 1.0 release.
how can I fix this bug in the code?

Kirby

When I posted this, I misread the calendar... my birthday is in May of 2004... when I clicked Go I thought it defaulted to May 2005... so really I did not post this bug. It was my fault that I did not pick 2005.

mike87

#8
i meant something different
on the mainpage i see today: Zukünftige Geburtstage: Mike (17)
in the calendar i see in january 2005: Geburtstage: Mike (18) 
the birthday is 4.1.1987

so the age on the mainpage is wrong

TarantinoArchives

i just activated the calendar. it's the 31st of december and it shows UPCOMING birthdays somebody who had birthday yesterday. how can i fix that?

TarantinoArchives

Quote from: TarantinoArchives on December 30, 2004, 08:36:08 PM
i just activated the calendar. it's the 31st of december and it shows UPCOMING birthdays somebody who had birthday yesterday. how can i fix that?

never mind. its 3 am, i just read the wrong line :-)

mike87

Quote from: mike87 on December 30, 2004, 05:13:58 PM
on the mainpage i see today: Zukünftige Geburtstage: Mike (17)
in the calendar i see in january 2005: Geburtstage: Mike (18) 
the birthday is 4.1.1987
today there's the same mistake
it prints still: Zukünftige Geburtstage: Mike (17)
in the calendar there's the correct age

[Unknown]

Okay, I didn't fix it properly - it's fixed now for the next release.

-[Unknown]

mike87

Quote from: [Unknown] on January 01, 2005, 10:52:09 AM
Okay, I didn't fix it properly - it's fixed now for the next release.

-[Unknown]
could you post, what has been changed? it's really annoying, if everybody asks, if there is a mistake in the calendar.

[Unknown]

Quote from: mike87 on January 01, 2005, 11:30:17 AM
Quote from: [Unknown] on January 01, 2005, 10:52:09 AM
Okay, I didn't fix it properly - it's fixed now for the next release.

-[Unknown]
could you post, what has been changed? it's really annoying, if everybody asks, if there is a mistake in the calendar.

But, it will be gone tommorow.... is it really that big a deal?

The issue is only the rollover of the year.  Like I said, it stops being a problem on the second day of the year.

-[Unknown]

mike87

ok
I'll live with it until tomorrow
next year I hope it will be shown correct ;)

Advertisement: