Safari, Firefox, Internet Explorer wouldn’t open HTTPS pages

Today, my login attempt at facebook failed - I was sure I typed in my password right, but the actual error was not with facebook, and it was with my comp’s date/time settings.  Yep, Both, safari and Firefox reported “expired certificate” issue to https:// sites.  I was wondering, even to facebook?  Then I remembered something (about someone’s bday) and lol the time reported by my PC clock was Sunday, 1st January.  Aha!  That must be it.  Apparently, the PC’s internal/battery clock-time needs repair.  And how I solved the issue for the time being?  I wrote a program called ”TimeSync” - which corrects the PC clock based upon the current UTC time from Google App Engine!