birthday subtracts one day

Mod that adds a birthday field to the users profile, theire age are displayed beside the posts, and on there birthday they will have a greeting popup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

birthday subtracts one day

Postby radixvir on Mon 21. Jul, 2003 01:26

i dont know why it was there but under the mkrealdate function you subtracted a day. so whenever i entered my bday it would show it as one day before. which obviously isnt my bday. so i changed:
Code: Select all
   if ($birth_year>1970)
      $epoch=$epoch+$epoch_Y*365-1+$leapyear;
   else
      $epoch=$epoch-$epoch_Y*365-1-$leapyear;
   return $epoch;

to
Code: Select all
   if ($birth_year>1970)
      $epoch=$epoch+$epoch_Y*365+$leapyear;
   else
      $epoch=$epoch-$epoch_Y*365-$leapyear;
   return $epoch;


and it works fine. any reason why i shouldnt have done that?
radixvir
Poster
Poster
 
Posts: 7
Joined: Fri 17. May, 2002 00:59

Postby kip2001 on Mon 21. Jul, 2003 03:10

OMG! Thank you so much, my birthday is on the 31st and this was bugging me a lot! :x
kip2001
Poster
Poster
 
Posts: 16
Joined: Tue 19. Nov, 2002 02:50

Postby Niels on Mon 21. Jul, 2003 11:25

I'm not shure this is the correct way to correct your problem

witch versions have you installed, the birthday mod should calculate correctly

could you please inform me of witch date you have used to "test with" so I can see here on mods.db9.dk how it behaives....
(I asume you have tested here on mods.db9.dk if the error is here as well ?)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby radixvir on Tue 22. Jul, 2003 23:33

no i havent tested it here. i JUST downloaded the bday script from this forum a few days ago so its probably the latest. my bday is 4/24/82
heres my config:

freebsd 5.1
php 4.3.2
phpbb 2.0.5

ill test it here in a minute
radixvir
Poster
Poster
 
Posts: 7
Joined: Fri 17. May, 2002 00:59

Postby kip2001 on Tue 22. Jul, 2003 23:38

lol, same day probably I did :wink:
kip2001
Poster
Poster
 
Posts: 16
Joined: Tue 19. Nov, 2002 02:50

Postby radixvir on Wed 23. Jul, 2003 06:06

no it seems to work fine here on your board. maybe cause im on nix and you are on windows?
radixvir
Poster
Poster
 
Posts: 7
Joined: Fri 17. May, 2002 00:59

Postby kooky on Wed 23. Jul, 2003 22:12

radixvir wrote:no it seems to work fine here on your board. maybe cause im on nix and you are on windows?

i'm both on UNIX and Win OS and not any problem with birth date ;)
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby Keiichi on Thu 24. Jul, 2003 06:38

I'm having this issue also. I've tried various user-adjusted time zones and that wasn't the problem also. I've removed the -1 thing also and it worked.
Keiichi
Poster
Poster
 
Posts: 3
Joined: Thu 24. Jul, 2003 04:44

Next

Return to Birthday [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron