HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Another calendar issue

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#56956 (In Topic #12400)
Avatar

Fan in action

Hey Guys,

As usual, I'm having a bit of a problem and I don┤t know how to solve it.

Well, the thing is when I open the page (www.airsoftsemtabus.com) the calendar shows Jan 1970 and when I login it shows as it should, December 2009. I have absolutely no idea of what happened…

Any thoughts?

By the way, it's still running version 4.2.0


Regards,
;)
Back to the top
 
Posted
Rating:
#56963
Avatar

Is your web server's clock wrong? It sounds like a CMOS battery problem has reset it to '0' (which is 1970 in computer time).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#56967
Avatar

Fan in action

Hey Chris,

If this is a CMOS battery problem, wouldn┤t the calendar be set in Jan 1970, even after I login?

In the meantime I've contacted the web server guys to check with them this possibility… I'll get back to you with their input.
Back to the top
 
Posted
Rating:
#56968
Avatar

Ah yes, you're quite right. Could you give me a URL I can use to see please.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#56969
Avatar

Fan in action

Here goes:

www.airsoftsemtabus.com

To log in use:

username: ocportal
pw: ocportal

Feel free to "look around" although I must warn you almost everything is written in Portuguese.

;)
Back to the top
 
Posted
Rating:
#56970
Avatar

Works for me. Are you able to find out the value of your 'client_time_ref' cookie?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#56971

Non-joined user

This is very confusing…

On Chrome, I flush my cash and cookies, hit refresh and the calendar shows as it should but when I hit refresh a second time the calendar goes to Jan 1970.

On Firefox, I did the same thing with the exact same result. When I refresh a second time, the calendar resets and I go back to 1970.

I'm not sure where or how to retrieve the value of the cookie.

Hope this ima will help otherwise You must tell me how to access it…


Sorry for all this trouble… :$
Back to the top
 
Posted
Rating:
#56972
Avatar

Fan in action

This is very confusing…

On Chrome, I flush my cash and cookies, hit refresh and the calendar shows as it should but when I hit refresh a second time the calendar goes to Jan 1970.

On Firefox, I did the same thing with the exact same result. When I refresh a second time, the calendar resets and I go back to 1970.

I'm not sure where or how to retrieve the value of the cookie.

Hope this image will help otherwise You must tell me how to access it…

Sorry for all this trouble… :$

ps: please remove that annoying guest comment… (just goes to prove how little I know about this… :P )
Back to the top
 
Posted
Rating:
#56973
Avatar

Whoops, I should have said 'client_time'. That style of screenshot is fine, but could you click on 'client_time' and reattach please.
Sorry about that.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#56979
Avatar

Fan in action

Here you go mate


As you may have noticed I changed my settings. cookies are deleted when I close Firefox. the only noticeable change is that when i open the browser I receive a new cookie and if i don't refresh the page I'm able to see the calendar correctly.
Back to the top
 
Posted
Rating:
#57001
Avatar

Hello,

I suspected somehow that the cookies were not successfully working out your timezone, and using an extremely negative timezone for some reason, that knocks things back to 1970.
The cookie value there looked fine though.
Does the attached file help?
Attachment
sources/temporal.php
» Download: temporal.php (10 Kb, 257 downloads so far)





Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#57643
Avatar

Fan in action

No,
Do not help, it still the same.

Nuno Onša

An OCP Portal

Back to the top
 
Posted
Rating:
#57660
Avatar

Hi,

Are you using the same site, or do you have the same problem on a different site?

What happens if you turn off Javascript, and empty your domain cookies (the Firefox Web Developers Toolbar will help with this)?

Does it happen on all browsers?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#57744
Avatar

Fan in action

one2much said

Here goes:

www.airsoftsemtabus.com

To log in use:

username: ocportal
pw: ocportal

Feel free to "look around" although I must warn you almost everything is written in Portuguese.

;)
Yes Chris is the same site.

Nuno Onša

An OCP Portal

Back to the top
 
Posted
Rating:
#57777
Avatar

Fan in action

Hi,

Strangely, not only the problem persists but we also found out that despite having different birth dates the system is assuming 2 users as celebrating their anniversary on January 1st 1970.

Firstly, we changed the birth dates, but absolutely nothing happened (the system says that they are celebrating their anniversary "today", January 1st 1970.

Secondly, we've deleted this two accounts but the calendar insists on showing 1970.

Finally, we crated new accounts for this two users and, once again, they show up on the birthday list of January 1st 1970.

By the way, we┤re experiencing the same problem regardless the browser we're using (at the moment i'm using IE 8.0.6001.18882, Firefox 3.5.7 and Chrome 4.0.249.78).

Please remember that when you open the web page (www.airsoftsemtabus.com) for the first time the calendar shows as it should. It only goes back to 1970 when you hit the "refresh" button or when you logout. Afterwards and unless you empty your cookies, the calendar remains in 1970.

It's very very strange…

Regards,
;)

Back to the top
 
Posted
Rating:
#57794
Avatar

Around line 78 of sources/temporal.php, please change:

Code

         $client_time=preg_replace('# (GMT|UST)[\+\-]\d+ \(\w+\)$#','',$client_time);
to:

Code

         $client_time=preg_replace('# (GMT|UST)[\+\-]\d+( \(\w+\))?$#','',$client_time);

Does this help?


This is based on some research I just did. It seems your server can't parse "Thu Dec 17 2009 19:52:34 GMT+0000", even though mine can. It also seems that your test client PC's are generating times like this whilst mine is not (mine is more like "Thu Dec 17 2009 19:52:34 GMT+0000 (BST)" – which is probably a UK thing, and which the line of code I changed for you would have stripped down to the simpler needed bit).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#57799
Avatar

Fan in action

Changed the code but didn't get any results.

Also I restored the website to its default theme but it didn't solve it either (probably theming has nothing to do with this but I'm way over my league now, so I prefer to tell you all my steps…)

Could it be something related to a corrupted calendar add-on?

Back to the top
 
Posted
Rating:
#57806
Avatar

After the line I asked you to change please temporarily put:

Code

@exit($client_time);
refresh, and tell me what it says (it should output some plain text).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#57809
Avatar

Fan in action

it says:

Mon Feb 01 2010 12:50:15 GMT+0000 (GMT Standard Time)
Back to the top
 
Posted
Rating:
#57813
Avatar

Fan in action

After you point to a problem with my test client PC's I've tried using a proxy to access the website and the calendar displayed as it should. Even when I hit "refresh" it behaves flawlessly.

If it was a problem with the server everybody ( despite their location) would be having the same problem, right?

So, would it be correct to assume that this is a problem with my Internet Provider?
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand