We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21953
    • 34 Posts
    Does the creator of this forum board expect all members to be youngsters? I am not able to my correct age in my profile. For some reason I’m not able to make my birth date stick, as it allways reverts to 1969-12-31 - a bit more than 20 years away from my real birthdate.
      • 31037
      • 358 Posts
      Hey, if so I too old too! laugh

      I guess it have something to do with unix time, no one working with computers should be older than the unix time zero point, 1st of jan 1970 wink
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Let this be an example of the results of using the wrong data type for date manipulation.

        A UNIX timestamp is intended to be just that, a timestamp. If you are recording the date a certain document was created, or something similar such as the date a user registered, of course the date could not be before 1970, since no UNIX-based computer system was creating anything before then! So counting the number of seconds since a known date is useful for such things, and until 2036 or something like that it will serve such a purpose admirably.

        But a timestamp is not a valid data type for storing actual dates. Shame on the SMF programmers for making such a fundamental error.

        http://il.php.net/manual/en/ref.datetime.php

          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 33372
          • 1,611 Posts
          Quote from: sottwell at Nov 25, 2006, 10:04 AM

          But a timestamp is not a valid data type for storing actual dates. Shame on the SMF programmers for making such a fundamental error.
          Although at least it keeps the old people out! wink

          Unfortunately, that includes me...
            "Things are not what they appear to be; nor are they otherwise." - Buddha

            "Well, gee, Buddha - that wasn't very helpful..." - ZAP

            Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
            • 12652
            • 228 Posts
            The cyber version of the Fountain of Youth.... what’s everyone complaining about wink
              | Identity Developments delivers SEO focused web design and web presence services
              - it's not about websites, it's about your identity. |