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.


timezone issue

Login / Search

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

Fan in action

I am using ocPortal 7.1.5 on a debian server.
The server is located in germany and is configured to timezone CET.

I configured in ocp Setup->Configuration->Site-Options: UTC+01:00.
And my user has configured UTC+01:00 in his profile also.

But the times on the webpage show a different of +01:00 hour.
If i post at localtime 14:04 it shows up as 15:04.
In my user profile the localtime shows also 15:04 whereas it is 14:04 in fact.

Is there a bug in ocPortal or did i configured something wrong?

I think it is a bug, because here it is the same.
In my profile i have selected "UTC+01:00" and wrote this post at 17:15 and it shows up as 6:30pm for me.
The additional 15 minutes i cannot explain, maybe it is an unadjusted time of the server.
Back to the top
 
Posted
Rating:
#80864
Avatar

Unfortunately the time library we use has incorrect hard-coded DST transition dates (I only found this out to my surprise recently). I'll see if there is some way to solve 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:
#80874
Avatar

Community saint

Good luck with that Chris  ;)

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#80911
Avatar

Fixed :).

I completely axed use of tzphp. It turns out it's completely unneeded, clever use of PHP's own functionality meant exactly the same thing was possible without it – and without the bug!

So we now have a simpler implementation, with less code weight, and more stability. That's a win I'd say.

(All your custom name mappings remain temp1024, I checked the same timezone namings work with PHP's inbuilt timezone database)


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:
#80912
Avatar

Community saint

Chris Graham said

Fixed :).
So we now have a simpler implementation, with less code weight, and more stability. That's a win I'd say.
Available now, or will this only be available for v8?

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#80914
Avatar

It'll be in v8 which is available very soon (I know I keep saying that, but it will ;)).


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:
#80915
Avatar

Community saint

:thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#80937
Avatar

Community saint

Wow. Nice b-day present to yourself, Chris. Less code-weight and more stability.

And, here I thought you'd be off to the pub to celebrate.

Bob
Back to the top
 
Posted
Rating:
#80976
Avatar

Community saint

BobS said

Wow. Nice b-day present to yourself, Chris. Less code-weight and more stability.

And, here I thought you'd be off to the pub to celebrate.

Bob
After the pub visit, it'll be more weight and less stability!  :lol:

Steve
Back to the top
 
Posted
Rating:
#80978
Avatar

Community saint

Chris Graham said

I completely axed use of tzphp. It turns out it's completely unneeded, clever use of PHP's own functionality meant exactly the same thing was possible without it
Gotta love those light bulb moments :thumbs: .
(All your custom name mappings remain temp1024, I checked the same timezone namings work with PHP's inbuilt timezone database)
Of course they do :lol:, I checked them against one of the PHP reference manuals.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: