Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time stamp #956

Closed
ShaneZampire opened this issue Dec 6, 2018 · 4 comments
Closed

Time stamp #956

ShaneZampire opened this issue Dec 6, 2018 · 4 comments
Labels
Feature-Request Issue is a feature request

Comments

@ShaneZampire
Copy link

First, awesome job on this project yall! Second I am not a coder, smart, or claim to be. I know enough to get by. I managed to install this and get it working on my website. I am using the Twitter RSS bridge - Hashtag - Atom ... all seems to be working perfect except one thing. Its time stamping everything 5 hours ahead. Correct date but its 6:45 PM here and its stamping 11:45 PM How do I correct this? Which file do I adjust this in? Thanks Shane

@ShaneZampire ShaneZampire changed the title Time sta Time stamp Dec 6, 2018
@logmanoriginal
Copy link
Contributor

Welcome to RSS-Bridge!

How do I correct this? Which file do I adjust this in?

RSS-Bridge is set to UTC by default. Unfortunately this is statically defined in index.php which means it gets replaced on every update.

date_default_timezone_set('UTC');

date_default_timezone_set defines the timezone of your server. A list of applicable timezones is provided here: http://php.net/manual/en/timezones.php (take a look at "Others").

In your case this might work: date_default_timezone_set('EST');

I suppose it makes sense adding a parameter to the configuration file in the future. Let me know if this works for you. That way you don't have to change this parameter on every update.

I'll flag this as feature request for future reference (for adding a parameter to the configuration file).

@logmanoriginal logmanoriginal added the Feature-Request Issue is a feature request label Dec 7, 2018
@ShaneZampire
Copy link
Author

Worked perfect! I just wanted to scroll #breaking tweets on my website and I found a rss reader .php thingie here on Github. It has ($pubDate,0,22), which basically reads 0-22 characters from the pubDate in the Mrss file and displayed it as it came in. It being off 5 hours was driving me nuts. Thanks so so much for taking the time to help me!

@logmanoriginal
Copy link
Contributor

Thanks for the feedback! I'll make sure to fix this in future releases.

@logmanoriginal
Copy link
Contributor

You can now specify your timezone in the configuration file. Find more information on the Wiki

infominer33 pushed a commit to web-work-tools/rss-bridge that referenced this issue Apr 17, 2020
RSS-Bridge currently statically sets the timezone to UTC which can
result in incorrect timestamps if the server is hosted in another
region.

This commit adds a new configuration parameter to allow admins to
specify their own timezone for their servers. Invalid values will
result in an error message.

Example:

  [system]
  timezone = "UTC"

For compatibility reasons the default value is set to UTC.

This parameter accepts any of the supported timezones listed at
https://www.php.net/manual/en/timezones.php

Closes RSS-Bridge#956
References RSS-Bridge#1001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Request Issue is a feature request
Projects
None yet
Development

No branches or pull requests

2 participants