Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:05:00 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155551 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: WB 2.8.2 - publishing time of news not working correctly  (Read 788 times)
VSG

Offline Offline

Posts: 108


« on: September 03, 2011, 07:20:59 AM »

Hi guys!

Since my update to 2.8.2 I ran into slight problems when publishing news.
I usually write those in advance and publish them with a certain start date. Since I live here in Europe, and due to the daylight savings time, I have a GMT +2 setting currently in WB.

Now, when I enter time 8:30 as a start-date for the news, they won't show on the site before 10:30.
When I enter 6:30, they will show at 8:30 - but the news also shows 6:30 as its start-date, when it is published!

Since this worked like a charm in 2.8.1, I can't image it being a server-issue.
The GMT +2 is set in settings and user-settings for the user posting the news.

Any help would be appreciated.
Best regards,
VSG

PS: I already have the SP1 from 2011-09-01 installed!
Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1253


« Reply #1 on: September 03, 2011, 10:34:59 PM »

known issue, we're working on it.  wink
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
VSG

Offline Offline

Posts: 108


« Reply #2 on: September 04, 2011, 04:13:13 PM »

Thanks! Looking forward to the next release Smiley.

Thanks to all developers for putting so much time and effort into this project!

Best regards,
VSG
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #3 on: September 04, 2011, 09:29:41 PM »

Hi,

go to AMASP site and download Addon File Editor or WebbasedEdit. Open /modules/news/view.php and replace time(); with time()+TIMEZONE;

cheers,
Ivan
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
VSG

Offline Offline

Posts: 108


« Reply #4 on: September 05, 2011, 06:22:12 AM »

Thanks crnogorac081!

Do I have to replace all iterations of time(); with time()+TIMEZONE; ?

There are five in total in the view.php.

Thanks in advance for the help!
Best regards,
VSG
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #5 on: September 05, 2011, 01:59:54 PM »

To be exact:

$t = time();

with

$t = time()+TIMEZONE;

there are only 2 of them (one for overview and one for exact news )

cheers,
Ivan
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
VSG

Offline Offline

Posts: 108


« Reply #6 on: September 05, 2011, 08:14:55 PM »

Ok, thanks for the quick help!

Best regards!
VSG
Logged
VSG

Offline Offline

Posts: 108


« Reply #7 on: February 26, 2012, 09:41:06 AM »

Hi guys!

Unfortunately this little fix described by crnogorac081 is not implemented in 2.8.3.

If there are any more updates for 2.8.x maybe you could incorporate it - I was wondering why my news didn't show up on time until I searched for this old thread and found the solution.

Otherwise 2.8.3 is running fine!
Best regards!
VSG
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #8 on: February 29, 2012, 08:15:51 PM »

Hi mate,

dont worry, just apply it yourself Smiley as I understood there is mass rewrite of news module, so I think that is reason why core/module devs didnt apply this yet..

cheers,
Ivan
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
sky writer

Offline Offline

Posts: 285



« Reply #9 on: March 14, 2012, 02:08:42 AM »

I'm using 2.8.1 and the original news schedule does not work on local time for me, nor does this fix.  My host is in another time zone, is that the issue?  If so, is there any way to make this work.
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #10 on: March 14, 2012, 09:21:58 AM »

Hi,

You should match your local timezone with the timezone settings. For example if you are in real timezone +1, and your host is in -1, you should set timezone to +2.. Check the time value in settings and play with timezone to match your current time..

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
sky writer

Offline Offline

Posts: 285



« Reply #11 on: March 14, 2012, 02:47:38 PM »

When I go to Settings and enter my local Timezone, the Time Format displays my local time correctly.
Same goes for Preferences Timezone.

So are you saying that I need to add/subtract my host's timezone to/from my timezone in Settings?  This would make all my actual times incorrect.

Sorry if I am not understanding.
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #12 on: March 15, 2012, 06:23:19 PM »

Yes, your host could set their settings to their local GMT +/- zone, and not to GMT-0  just apply in main Settings correct timezone value to match your local time..

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!