Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix warnings in Ruby 2.0 | Aaron Patterson | 2012-11-07 | 1 | -0/+2 |
| | |||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -3/+3 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-07-15 | 1 | -5/+5 |
|\ | |||||
| * | use 'use_zone' method in example, instead of reimplementing it | Jakub Kuźma | 2012-07-10 | 1 | -5/+5 |
| | | |||||
* | | adds a missing require [fixes #6896] | Xavier Noria | 2012-07-15 | 1 | -1/+0 |
|/ | | | | | This file uses Time.zone, which is defined in active_support/core_ext/time/zones.rb. | ||||
* | AS core_ext refactoring | Alexey Gaziev | 2012-04-29 | 1 | -9/+19 |
| | |||||
* | Require for time_with_zone should stay in core_ext/time_zones :bomb: | Piotr Sarnacki | 2012-04-15 | 1 | -0/+1 |
| | |||||
* | Add missing require in Active Support time zones (fixes #5854) | Piotr Sarnacki | 2012-04-15 | 1 | -1/+1 |
| | | | | | I also removed the other require as it's already present in `activesupport/core_ext/time/calculations` | ||||
* | added find_zone and find_zone! to AS timezones and changed the AS Railtie to ↵ | Josh Kalderimis | 2011-04-05 | 1 | -15/+18 |
| | | | | | | use find_zone! as well as adding Railtie tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Raise on invalid timezone | Marc-Andre Lafortune | 2011-04-05 | 1 | -8/+12 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Change Time.zone= docs. | Brian Morearty | 2011-02-04 | 1 | -4/+8 |
| | | | | | Update the example to show how to reset the current thread's Time.zone upon exiting a request. | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -3/+3 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Refactor move some date, time and date_time methods to */zones and fixed ↵ | Santiago Pastorino | 2010-07-03 | 1 | -5/+0 |
| | | | | some requires | ||||
* | when the timezone is nil, a TimeWithZone object should not be constructed. ↵ | Aaron Patterson | 2010-06-17 | 1 | -0/+2 |
| | | | | | | [#4881 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Convert Time conversions extension module to class reopen | Jeremy Kemper | 2009-03-28 | 1 | -0/+2 |
| | |||||
* | Convert Time extension modules to class reopens | Jeremy Kemper | 2009-03-26 | 1 | -81/+71 |
| | |||||
* | Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵ | Jeremy Kemper | 2008-08-31 | 1 | -1/+1 |
| | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -12/+12 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Adding documentation for time zone features | gbuesing | 2008-05-18 | 1 | -8/+19 |
| | |||||
* | Duration #since and #ago with no argument (e.g., 5.days.ago) return ↵ | gbuesing | 2008-04-20 | 1 | -0/+5 |
| | | | | TimeWithZone when config.time_zone is set. Introducing Time.current, which returns Time.zone.now if config.time_zone is set, otherwise just returns Time.now | ||||
* | Improve documentation. | Pratik Naik | 2008-04-05 | 1 | -3/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time.zone= accepts TZInfo::Timezone instances and Olson identifiers; wraps ↵ | Geoff Buesing | 2008-03-28 | 1 | -2/+9 |
| | | | | | | result in TimeZone instance git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve documentation. | Pratik Naik | 2008-03-26 | 1 | -5/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time, DateTime and TimeWithZone #in_time_zone defaults to Time.zone. ↵ | Geoff Buesing | 2008-03-17 | 1 | -19/+16 |
| | | | | | | Removing now unneeded #in_current_time_zone. ActiveRecord time zone aware attributes updated to use #in_time_zone git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Removing unneeded #change_time_zone method from Time, DateTime and TimeWithZone | Geoff Buesing | 2008-03-11 | 1 | -13/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time#zone=, #in_time_zone and #change_time_zone accept a Duration | Geoff Buesing | 2008-02-10 | 1 | -1/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time#in_time_zone handles Time.local instances correctly | Geoff Buesing | 2008-02-10 | 1 | -4/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Pruning unneeded Time#change_time_zone_to_current. Enhanced docs for ↵ | Geoff Buesing | 2008-02-10 | 1 | -7/+6 |
| | | | | | | #change_time_zone git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Time Zone support to ActiveRecord, and config.time_zone property for ↵ | Rick Olson | 2008-02-06 | 1 | -1/+3 |
| | | | | | | specifying a default Time Zone. Closes #10982 [Geoff Buesing, rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time.get_zone refactored to private method, given that the encapsulated ↵ | Geoff Buesing | 2008-01-25 | 1 | -6/+12 |
| | | | | | | logic is only useful internally git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time.zone uses thread-local variable for thread safety. Adding ↵ | Geoff Buesing | 2008-01-25 | 1 | -7/+13 |
| | | | | | | | | Time.use_zone, for overriding Time.zone locally inside a block. Removing unneeded Time.zone_reset! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time #in_current_time_zone and #change_time_zone_to_current return self when ↵ | Geoff Buesing | 2008-01-23 | 1 | -2/+2 |
| | | | | | | Time.zone is nil git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Introduce ActiveSupport::TimeWithZone, for wrapping Time instances with a ↵ | Geoff Buesing | 2008-01-23 | 1 | -0/+68 |
TimeZone. Introduce instance methods to Time for creating TimeWithZone instances, and class methods for managing a global time zone git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |