11 Jan '13, 2am

Time Zones, Ruby on Rails, and MySQL

Time zones in Rails can be a little confusing because they add support by modifying existing Ruby core/stdlib classes. Ruby has no time zone support but Rails actually does a good job. The key is to always use Time.zone rather than Time and to be aware of the difference between things like Date.today (standard Ruby that isn't TZ aware) and Date.current (Rails added TZ aware). Outside of that it's easy to convert times to different zones or wrap a block of code it a particular zone by using use_zone . It'll adjust for TZ differences when comparing zones, etc. Unix timestamps reduce readability by humans (for example, when you're querying from the MySQL console). Additionally, unix timestamps can have a more limited range than a string representation. For example, some systems don't implement support for negative timestamp values.

Full article: http://www.reddit.com/r/programming/comments/16cphg/time_...

Tweets

Ruby on Rails Bootcamp in Seattle

codefellows.org 10 Jan '13, 2pm

Immersive education is the best way to learn how to code. You'll be living and breathing Ruby on Rails every day of the we...

Improving Rails boot time with Zeus

robots.thoughtbot.com 10 Jan '13, 8pm

January 10, 2013 dancroak ruby on rails zeus rspec vim Improving Rails boot time with Zeus Zeus improves Rails boot time. ...

One Day At A Time

One Day At A Time

tcmaine.com 15 Jan '13, 1pm

I have way too much photographic content, but words don’t come easy you know. In my defense, the last time I wrote a prope...

Update Ruby now before it goes off the Rails

Update Ruby now before it goes off the Rails

pcworld.com 10 Jan '13, 10pm

Do you use Ruby on Rails? If so, it’s time to update. Now. Ruby on Rails is an open source Web application framework built...

#Jobs #IT Ruby/ Ruby on Rails Developer(Postgre...

jobview.monster.co.uk 06 Jan '13, 8pm

Ruby/ Ruby on Rails Developer (PostgreSQL, MySQL, Agile) - Finance, London Ruby/ Ruby on Rails Developer (PostgreSQL, MySQ...

Ruby on Rails Vulnerabilities Discovered, Users Urged to Update Immediately

Ruby on Rails Vulnerabilities Discovered, Users...

thewhir.com 10 Jan '13, 4pm

A vulnerability discovered on the Ruby on Rails web application framework allows attackers to bypass authentication system...

#yokohamarb @miyohide これこれ/zxcvbn をつかって Rails の...

qiita.com 12 Jan '13, 9am

%w[password password_confirmation encrypted_password]

Read @adamjodonnell's insights on the latest Ru...

blog.sourcefire.com 09 Jan '13, 8pm

A little under 24 hours ago two major, long-standing vulnerabilities were announced in the popular web programming framewo...

(PMI-NEWS) Luxury Time Zone Watches - The Rolex Sky-Dweller is the First Rolex with Multiple Time Zones (TrendHunter...

(PMI-NEWS) Luxury Time Zone Watches - The Rolex...

trendhunter.com 13 Jan '13, 5pm

The Rolex Sky-Dweller is the First Rolex with Multiple Time Zones Published: Jan 13, 13 References: rolex and highsnobiety...

Ruby on Rails patches more critical vulnerabilities: Those using the Ruby on Rails web application framework on

Ruby on Rails patches more critical vulnerabili...

news.hitb.org 09 Jan '13, 10am

Those using the Ruby on Rails web application framework on their websites are being advised to update the software immedia...

Ruby on Rails patches more critical vulnerabili...

infoworld.com 09 Jan '13, 12pm

Those using the Ruby on Rails Web application framework on their websites are being advised to update the software immedia...

Ruby on Rails Plugin for Redmine Authentication...

freelancer.com 13 Jan '13, 2am

We are presently funding a project that will be eventually open-sourced and maintained by our company. In short, I need a ...

Ruby dreams? Make that dream a reality! Start by making your first Ruby on Rails app, a ToDo list: via @Skillcrush

Ruby dreams? Make that dream a reality! Start b...

skillcrush.com 08 Jan '13, 5pm

So you know your way around HTML & CSS. You’ve made your own website, and even tried implementing a jQuery plugin or two. ...

expert webdeveloper -- #php, #html , ruby on ra...

freelancer.com 14 Jan '13, 10pm

Freelancer.com (formerly GetAFreelancer) is the world's largest outsourcing and crowdsourcing marketplace for small busine...