-
Notifications
You must be signed in to change notification settings - Fork 3
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
Timezone support #3
Comments
Oh super cool. Yeah this was on my list of things to figure out. Two questions: In my test my post is gets a time stamp of one hour ahead. I think it's because it should be Second question: Are you thinking that I just put |
I had to install those gems for sure. Also, you're probably right about the subtracting an hour thing. I was really just winging it and it was producing the results I needed at the time (before the time change). |
Alright so I just pushed v 0.2.0 which has some level of time-zone support. I made a larger change in that I extracted 4 "user settings" to a user_settings.rb file and then created a new main menu option to edit that file. By default it's: $my_timezone = 'America/New_York'
$my_text_editor_command = 'vim'
$my_blog_location = '../public_html/blog.html'
# Only change this one if you know what you're doing!
$my_template_location = '../radiation_templates/blog.html.erb' Also, turns out you don't need active_support, so I only added Erik, Do you know what other options there are for tzstring besides "America/New_York" and "America/Los_Angeles"? Is there a list of options somewhere online that I can provide a URL to in a comment? This silly form thing (http://www.timezoneconverter.com/cgi-bin/zoneinfo) is the closest I could find, but I haven't tested any other options other than 'America/New_York' |
Hi. I just started using Radiation to manage my tildepage and love it. Thanks for the hard work! However, I'm curious if this new update will conflict with my current setup. In order to get Screen and Radiation to use the correct time, I updated my .bash_profile to automatically adjust to my actual timezone. Will this interfere with Radiation's new setup? |
I would guess that it would not interfere, but if you have any trouble just go into current_time = Time.new Update: I just pushed version 0.2.1 which allows users to set the timezone to |
Great, thanks for the response. I will attempt to update a little later. Is there a smooth way to update the package? If I attempt to re-git, it errors out saying that the directory already exists. Should I remove the radiation directory and install as new? |
So there's at least 2 way to update. The best way is to do a real re-install. Remove the radiation folder by running The second way, which may not update it correctly, is to cd into the radiation directory and run I wish there was a smoother way to update it. Honestly I thought there would only be a handful of users. One idea I've been thinking about is making it a Ruby gem, which has a nice update functionality built in. But for now I like that users can and should frequently do a clean re-install. |
Newest release is installed and running perfectly. Here's some additional info on the TZ variables if you still need it. |
Thanks man. Apologies but I just pushed a new version with Markdown support. You'll need to do a full re-install again if you want it-- sorry! |
This seems like it would be really easy to build into the installation flow (but what the hell do I know).
Once I had Radiation installed, I hardcoded timezone support by hardcoding in lib/post at line 21:
and making my config/environment look like this:
If I had time I'd do this myself but I'm busy blah blah blah.
The text was updated successfully, but these errors were encountered: