Article Time ahead 1 Hour

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
craywolf
Mr. Awesome
Posts: 97
Joined: 19 Mar 2013, 18:07

Re: Article Time ahead 1 Hour

Postby craywolf » 26 Apr 2013, 17:31

I didn't even notice until today, the "All articles" view was showing times that were an hour behind the individual feed views. After updating to 8cefe38, the time stamps now match (and are correct). Thanks!

smeerbartje
Bear Rating Disaster
Bear Rating Disaster
Posts: 67
Joined: 04 Apr 2013, 23:24
Contact:

Re: Article Time ahead 1 Hour

Postby smeerbartje » 26 Apr 2013, 17:35

Is there some way to let the update.php log in the currect timezone?

gbcox
Bear Rating Master
Bear Rating Master
Posts: 149
Joined: 25 Apr 2013, 04:52

Re: Article Time ahead 1 Hour

Postby gbcox » 26 Apr 2013, 18:32

Just out of curiosity, what platform are you running on?
I'm running on Fedora 18 and took all the system defaults. System is set to UTC and my timezone is PST.
I configured TTRSS to PST also. Haven't had any issues in this regard whatsoever.

smeerbartje
Bear Rating Disaster
Bear Rating Disaster
Posts: 67
Joined: 04 Apr 2013, 23:24
Contact:

Re: Article Time ahead 1 Hour

Postby smeerbartje » 26 Apr 2013, 20:42

Running on Ubuntu server 12.10, timezone in both php.ini's (cli and normal) set as "Europe/Amsterdam". I don't understand the two hours time difference.

gbcox
Bear Rating Master
Bear Rating Master
Posts: 149
Joined: 25 Apr 2013, 04:52

Re: Article Time ahead 1 Hour

Postby gbcox » 26 Apr 2013, 21:55

Interesting... I didn't change anything in php.ini and it is working fine.
Here are the sections in mine:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667

; http://php.net/date.default-longitude
;date.default_longitude = 35.2333

; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333

In fact, the only thing I have ever changed in php.ini was related to the memory_limit for scripts. I had previously ran horde and needed to bump it up... but so far for ttrss everything is fine at the 128M default. Have you thought about setting everything back to system defaults? Sometimes less is more...

smeerbartje
Bear Rating Disaster
Bear Rating Disaster
Posts: 67
Joined: 04 Apr 2013, 23:24
Contact:

Re: Article Time ahead 1 Hour

Postby smeerbartje » 27 Apr 2013, 01:09

Setting the timezone shouldn't be "bad", right? I'm in Europe/Amsterdam... so why not leave it that way? It's strange that tt-rss does not use this setting...

gbcox
Bear Rating Master
Bear Rating Master
Posts: 149
Joined: 25 Apr 2013, 04:52

Re: Article Time ahead 1 Hour

Postby gbcox » 27 Apr 2013, 06:53

Well, you'd think... :wink:
Depends on your platform. I've found with Fedora to go with the defaults, and only look at changing them if there is an issue.

The time on my system is UTC, and then I configure the time zone. Everything else follows that.

Give it a whirl. At this point, couldn't hurt.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Article Time ahead 1 Hour

Postby fox » 27 Apr 2013, 12:14

smeerbartje wrote:Setting the timezone shouldn't be "bad", right? I'm in Europe/Amsterdam... so why not leave it that way? It's strange that tt-rss does not use this setting...


tt-rss uses UTC internally so that per-user timezones are easier to implement.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Article Time ahead 1 Hour

Postby fox » 27 Apr 2013, 12:23

smeerbartje wrote:Is there some way to let the update.php log in the currect timezone?


Not really, unless you change the _debug() function to convert the timestamp.

hrk
Bear Rating Disaster
Bear Rating Disaster
Posts: 75
Joined: 24 Apr 2013, 12:39

Re: Article Time ahead 1 Hour

Postby hrk » 28 Apr 2013, 11:52

Quick & dirty (& not what you really asked for) fix: edit include/functions.php and change line 149 adding a " %Z" inside the format string. That'll show the timezone (UTC) in the logs, which will at least help you remember it's not localtime ;)


Return to “Support”

Who is online

Users browsing this forum: No registered users and 6 guests