Joshua Peek
|
c08547d226
|
Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ActiveSupport [#238 state:resolved]
|
2008-06-03 13:32:53 -05:00 |
|
gbuesing
|
f88267d532
|
TimeZone#to_s shows offset as GMT instead of UTC, because GMT will be more familiar to end users (see time zone selects used by Windows OS, google.com and yahoo.com.) Reverts [8370]
|
2008-05-25 11:56:29 -05:00 |
|
Pratik Naik
|
98dc582742
|
Merge docrails.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-05-25 12:29:00 +01:00 |
|
gbuesing
|
c1c1d6c2ea
|
Adding documentation for time zone features
|
2008-05-18 14:13:47 -05:00 |
|
Martin Eisenhardt
|
fc02eabf29
|
Precompute TimeZone.us_zones [#199 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-05-15 09:22:44 -05:00 |
|
gbuesing
|
06a7c2948a
|
Time.zone.parse: return nil for strings with no date information
|
2008-05-08 21:30:17 -05:00 |
|
gbuesing
|
fb9bf16e96
|
Time.zone.parse: compatibility with far future date with time zone offset in string. Eliminate creation of additional TimeWithZone instance to determine utc offset.
|
2008-05-08 20:56:38 -05:00 |
|
Scott Fleckenstein
|
eb5b93be74
|
Fix Time.zone.parse from stripping time zone information and make Time aware attribute methods use Time.zone.parse instead of to_time
|
2008-05-08 19:25:31 -05:00 |
|
Joshua Peek
|
a40223d36d
|
Preload TimeZone zones for thread safety.
|
2008-05-04 21:53:07 -05:00 |
|
Geoff Buesing
|
d4493bc562
|
Bundling abbreviated version of TZInfo gem 0.3.8: only the classes and zone definitions required to support Rails time zone features are included. If a recent version of the full TZInfo gem is installed, this will take precedence over the bundled version
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 22:24:35 +00:00 |
|
Geoff Buesing
|
59183eec6f
|
Time.zone= accepts TZInfo::Timezone instances and Olson identifiers; wraps result in TimeZone instance
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 04:06:47 +00:00 |
|
Geoff Buesing
|
f371f29265
|
Make TimeWithZone work with tzinfo 0.2.x: use TZInfo::Timezone#zone_identifier alias for #abbreviation, silence warnings on tests. Raise LoadError when TZInfo version is < 0.2 by sniffing for TZInfo::TimeOrDateTime constant. Move all tzinfo-dependent TimeZone tests into uses_tzinfo block
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9071 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-21 22:48:00 +00:00 |
|
Geoff Buesing
|
fe7c68ee5d
|
TZInfo caches Timezone instances in its own internal hash cache, so TimeZone::MAPPING doesn't need to cache them as well
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9046 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 05:14:26 +00:00 |
|
Geoff Buesing
|
2366fdbdb1
|
Adding TimeZone#parse
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 05:07:50 +00:00 |
|
Geoff Buesing
|
b132413885
|
Adding TimeZone#at and DateTime#to_f
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 03:45:32 +00:00 |
|
Geoff Buesing
|
77ee522bf6
|
TimeWithZone caches TZInfo::TimezonePeriod used for time conversion so that 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
|
2008-03-17 02:40:28 +00:00 |
|
Geoff Buesing
|
ba91fddc44
|
TimeZone #local and #now correctly enforce DST rules
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-11 05:39:13 +00:00 |
|
Geoff Buesing
|
52b57c662c
|
TimeWithZone instances correctly enforce DST rules. Adding TimeZone#period_for_utc
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-11 04:26:20 +00:00 |
|
Geoff Buesing
|
94fa9fb745
|
TimeZone#new renamed #local, so that new TimeWithZone instances can be created via Time.zone.local()
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-10 17:02:22 +00:00 |
|
Rick Olson
|
72385a7be6
|
Add Time Zone support to ActiveRecord, and config.time_zone property for 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
|
2008-02-06 06:43:02 +00:00 |
|
Rick Olson
|
9623264c09
|
Remove unnofficial 'PST' timezone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-29 01:23:53 +00:00 |
|
Rick Olson
|
bd72d06374
|
Support retrieving TimeZones with a Duration. TimeZone[-28800] == TimeZone[-480.minutes]. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-29 01:09:49 +00:00 |
|
Geoff Buesing
|
4b2ac708b7
|
Adding UTC zone to TimeZone; TimeWithZone no longer has to fake UTC zone with nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-25 18:23:22 +00:00 |
|
Geoff Buesing
|
2168178bdb
|
TimeZone#to_s uses UTC rather than GMT; reapplying change that was undone in [8679]. References #1689
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-25 03:54:10 +00:00 |
|
Geoff Buesing
|
213fac6f49
|
TimeZone#now returns an ActiveSupport::TimeWithZone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8710 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-23 20:49:53 +00:00 |
|
Geoff Buesing
|
2e7b2f0344
|
Adding alternate_utc_string option to TimeZone#formatted_offset. Removing unneeded TimeZone#offset
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-23 02:11:00 +00:00 |
|
Geoff Buesing
|
1d4f4cdfe2
|
Replace non-dst-aware TimeZone class with dst-aware class from 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
|
2008-01-21 03:55:54 +00:00 |
|
Geoff Buesing
|
e9dad7496d
|
Refactor number-to-HH:MM-string conversion logic from 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
|
2008-01-12 20:44:31 +00:00 |
|
Jeremy Kemper
|
dc3e55d117
|
TimeZone#to_s uses UTC rather than GMT. References #1689.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8370 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-10 10:08:07 +00:00 |
|
Jeremy Kemper
|
bcbcc0260b
|
Ruby 1.9 compat: TimeZone avoids localtime conversion. References #1689 [Chu Yeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-10 10:05:43 +00:00 |
|
David Heinemeier Hansson
|
6ca789bf00
|
Fixed that La Paz was included in -25200 and -14400 offsets when it should only be in -14400 (closes #9735) [bermi]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 22:56:37 +00:00 |
|
Jeremy Kemper
|
053d057a88
|
send -> send! for some private methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-27 10:41:12 +00:00 |
|
Michael Koziarski
|
e899190826
|
Pull in latest multibyte patch. Closes #6346 [Manfred Stienstra]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-04 09:03:57 +00:00 |
|
Michael Koziarski
|
f238d495b7
|
Add ActiveSupport::Multibyte. Provides String#chars which lets you deal 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
|
2006-10-03 23:45:32 +00:00 |
|
Jeremy Kemper
|
d31830cf9c
|
fix test warnings
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-05-31 22:43:53 +00:00 |
|
David Heinemeier Hansson
|
f73f9e42f4
|
Made TimeZone even more delicious #709
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-24 11:56:09 +00:00 |
|
David Heinemeier Hansson
|
65d3430baf
|
Fixed TimeZone issues in action-pack and active-support #704
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-23 23:55:59 +00:00 |
|
David Heinemeier Hansson
|
f9fca1eb63
|
Moved TimeZone to Active Support
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-23 15:13:03 +00:00 |
|