aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/values
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding TimeZone#parseGeoff Buesing2008-03-171-1/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding TimeZone#at and DateTime#to_fGeoff Buesing2008-03-171-2/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeWithZone caches TZInfo::TimezonePeriod used for time conversion so that ↵Geoff Buesing2008-03-171-8/+2
| | | | | | it can be reused, and enforces DST rules correctly when instance is created from a local time git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeZone #local and #now correctly enforce DST rulesGeoff Buesing2008-03-111-10/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeWithZone instances correctly enforce DST rules. Adding ↵Geoff Buesing2008-03-111-0/+5
| | | | | | TimeZone#period_for_utc git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeZone#new renamed #local, so that new TimeWithZone instances can be ↵Geoff Buesing2008-02-101-3/+3
| | | | | | created via Time.zone.local() git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Time Zone support to ActiveRecord, and config.time_zone property for ↵Rick Olson2008-02-061-0/+8
| | | | | | 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
* Remove unnofficial 'PST' timezoneRick Olson2008-01-291-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support retrieving TimeZones with a Duration. TimeZone[-28800] == ↵Rick Olson2008-01-291-2/+3
| | | | | | TimeZone[-480.minutes]. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding UTC zone to TimeZone; TimeWithZone no longer has to fake UTC zone ↵Geoff Buesing2008-01-251-1/+2
| | | | | | with nil git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeZone#to_s uses UTC rather than GMT; reapplying change that was undone in ↵Geoff Buesing2008-01-251-1/+1
| | | | | | [8679]. References #1689 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeZone#now returns an ActiveSupport::TimeWithZoneGeoff Buesing2008-01-231-6/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8710 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding alternate_utc_string option to TimeZone#formatted_offset. Removing ↵Geoff Buesing2008-01-231-10/+2
| | | | | | unneeded TimeZone#offset git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace non-dst-aware TimeZone class with dst-aware class from ↵Geoff Buesing2008-01-211-57/+216
| | | | | | tzinfo_timezone plugin. TimeZone#adjust and #unadjust are no longer available; tzinfo gem must now be present in order to perform time zone calculations, via #local_to_utc and #utc_to_local methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8679 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor number-to-HH:MM-string conversion logic from ↵Geoff Buesing2008-01-121-4/+1
| | | | | | TimeZone#formatted_offset to reusable Numeric#to_utc_offset_s method git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeZone#to_s uses UTC rather than GMT. References #1689.Jeremy Kemper2007-12-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8370 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: TimeZone avoids localtime conversion. References #1689 [Chu ↵Jeremy Kemper2007-12-101-3/+4
| | | | | | Yeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that La Paz was included in -25200 and -14400 offsets when it should ↵David Heinemeier Hansson2007-09-301-2/+2
| | | | | | only be in -14400 (closes #9735) [bermi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* send -> send! for some private methodsJeremy Kemper2007-09-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pull in latest multibyte patch. Closes #6346 [Manfred Stienstra]Michael Koziarski2006-10-043-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActiveSupport::Multibyte. Provides String#chars which lets you deal ↵Michael Koziarski2006-10-032-0/+0
| | | | | | with strings as a sequence of chars, not of bytes. Closes #6242 [Julian Tarkhanov, Manfred Stienstra & Jan Behrens] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix test warningsJeremy Kemper2006-05-311-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made TimeZone even more delicious #709David Heinemeier Hansson2005-02-241-9/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed TimeZone issues in action-pack and active-support #704David Heinemeier Hansson2005-02-231-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved TimeZone to Active SupportDavid Heinemeier Hansson2005-02-231-0/+155
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de