Birthday before 1970 always 1970

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #16
    Originally posted by Illuvatar
    My only concern is that this appears to be a known bug(as I've seen other posts re. this issue), so is this something that can be addressed in v3.0?
    This isn't a vB bug. According to one of the Developers:

    "It's a limit of how the date() function works on certain systems. Breaks in Windows as well. Times less than Jan 1, 1970 will be negative relative to the epoch, and some OS's don't handle that. (I saw this once before on a *nix box, but I can't remember the specifics of the setup.)"
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • Freddie Bingham
      Former vBulletin Developer
      • May 2000
      • 14057
      • 1.1.x

      #17
      Originally posted by Steve Machol
      This isn't a vB bug. According to one of the Developers:
      That's not entirely correct.. It is a bug in the mktime() libraries that PHP reference that is the problem, i.e. RH 7.3. We just need to put in a work around.

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #18
        Originally posted by freddie
        That's not entirely correct.. It is a bug in the mktime() libraries that PHP reference that is the problem, i.e. RH 7.3. We just need to put in a work around.
        That'll teach me for listening to a Developer!
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • Freddie Bingham
          Former vBulletin Developer
          • May 2000
          • 14057
          • 1.1.x

          #19

          Comment

          • BigCheeze
            Member
            • Sep 2002
            • 46
            • 3.0.7

            #20
            Well whom ever's problem it is, thta updated fixed it nicely on my system as well!!


            Thanks for the fix!

            Comment

            • kippesp
              Senior Member
              • Jan 2002
              • 241

              #21
              Will this work around be in 2.2.9?
              Cygwin - all the tools to make Windows complete (cvs, vim, diff, grep, gcc, ssh, ...)

              Comment

              • jschefdog
                New Member
                • May 2002
                • 22

                #22
                Thanks to everyone who posted info on this topic, and to Ed Sullivan for posting the work around. I am supporting a vBulletin site on zeonhost. The zeonhost servers seem to have this problem. The PHP code fix worked for me as well.

                What I don't understand about this problem is that the birthday displays just fine under Edit Profile, and if you look at the user profile under the Admin Control Panel. Why don't you just use the same PHP functions to display the birthday in members.php as you use in the control panel pages?

                Comment

                • Cygnus
                  Member
                  • Dec 2000
                  • 85

                  #23
                  Eerie coincidence... I am also on ZeonHost.

                  My question is different, though. The fix from Ed Sullivan above fixes the problem on the member's page but I still get e-mails with the bad birthdate. Not a big deal but where do I find the line to change that will correct this problem?

                  Edit:
                  I found the line on register.php... I think. Just not sure what to change it to. FWIW, I just upgraded from 2.2.6 to 2.2.8 and the problem remains.

                  Thanks in advance!
                  Cygnus
                  Last edited by Cygnus; Wed 20 Nov '02, 4:04pm.

                  Comment

                  • Cygnus
                    Member
                    • Dec 2000
                    • 85

                    #24
                    Bump. Still looking for help on this.

                    Developer?

                    Cygnus

                    Comment

                    • Gustav
                      Senior Member
                      • Jul 2001
                      • 158

                      #25
                      Originally posted by Illuvatar
                      Whoo Hoo!

                      Thank you Ed Sullivan!!

                      I applied the above changes and POOF everyone has their b-day displayed as it should!!

                      My only concern is that this appears to be a known bug(as I've seen other posts re. this issue), so is this something that can be addressed in v3.0?

                      Thanks again.
                      This is fixed in the 2.2.9 version I assume?

                      Comment

                      • The Gadgeteer
                        New Member
                        • Apr 2001
                        • 12

                        #26
                        Originally posted by Gustav
                        This is fixed in the 2.2.9 version I assume?
                        No, it's still there. I just ran into it on a 2.2.9 system I installed this weekend.

                        Julie

                        Comment

                        • Boofo
                          Senior Member
                          • Apr 2002
                          • 2033
                          • 4.1.x

                          #27
                          Originally posted by andrewpfeifer
                          This is probably because the epoch for *nix was on January 1, 1970. I'm not sure if this is fixable or what.

                          Edit: Hate to use you as an example, Steve, but it works on this profile: http://www.vbulletin.com/forum/membe...amp;userid=656

                          So maybe I'm not sure what you're talking about.
                          That date doesn't mean anything. I used to get thast same date for a Jan 31, 1954 birthday (mine), I fixed it for the getinfo but I can't seem to find a way to fix it for the newuser notify for registration.
                          vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.

                          vBulletin.org's ol' Moderator

                          I have a lifetime terrorist hunting permit - #091101

                          chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

                          Comment

                          • Boofo
                            Senior Member
                            • Apr 2002
                            • 2033
                            • 4.1.x

                            #28
                            Originally posted by Boofo
                            That date doesn't mean anything. I used to get thast same date for a Jan 31, 1954 birthday (mine), I fixed it for the getinfo but I can't seem to find a way to fix it for the newuser notify for registration.
                            Cygnus, here is the fix that I just did and it works right here now.

                            In register.php

                            Find:

                            Code:
                                if (date("Y")>$year and $year>1901 && $year!='0000') {
                                      $birthday = @date($calformat1,mktime(0,0,0,$month,$day,$year));
                                   } else {
                                      $birthday = @date($calformat2,mktime(0,0,0,$month,$day,0));
                                   }
                            Replace it with:

                            Code:
                                   if (date("Y")>$year and $year>1901 && $year!='0000') {
                                      $birthday = @date($calformat2,mktime(0,0,0,$month,$day,1993)).', '.$year;
                                   } else {
                                      $birthday = @date($calformat2,mktime(0,0,0,$month,$day,1993));
                                   }
                            vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.

                            vBulletin.org's ol' Moderator

                            I have a lifetime terrorist hunting permit - #091101

                            chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

                            Comment

                            • Craig A
                              Senior Member
                              • Apr 2000
                              • 620

                              #29
                              Originally posted by The Gadgeteer
                              No, it's still there. I just ran into it on a 2.2.9 system I installed this weekend.

                              Julie
                              http://www.the-gadgeteer.com
                              Has this bug been rectified in 3.0? I have just moved to an upgraded server and we are now suffering from this problem. I am about to apply the fix posted above but do not want to have to try and add this every single time I upgrade, for obvious reasons!

                              Comment

                              • Craig A
                                Senior Member
                                • Apr 2000
                                • 620

                                #30
                                ---
                                Last edited by Craig A; Fri 17 Jan '03, 11:30am.

                                Comment

                                Related Topics

                                Collapse

                                Working...