Benjamin Quorning
7e075e6247
Fixed many references to the old config/environment.rb and Rails::Initializer
2010-07-13 13:00:21 +02:00
Santiago Pastorino
f6d7a4d251
Removes the dependency that AMo has on tzinfo
...
[#4979 state:committed]
2010-07-03 02:26:18 -03:00
Norman Clarke
4dbb6e3ff0
Update Unicode database to 5.2.0. [ #5011 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-30 13:22:35 +02:00
Santiago Pastorino
b2633f9f93
Don't store incorrect values in zones_map
...
[#4942 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-28 19:35:33 +02:00
Josh Kalderimis
dad71c6099
removed 'unless const_defined?' code smell
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-21 23:34:45 +02:00
Evgeniy Dolzhenko
ccf9577aee
Fix a bunch of minor spelling mistakes
2010-06-11 14:15:34 +04:00
Santiago Pastorino
0bed93be25
Unforce tzinfo from AS
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-01 09:16:19 +02:00
Norman Clarke
f3abc8ac36
Use multibyte proxy class on 1.9, refactor Unicode.
...
Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding.
Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency.
[#4594 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-21 12:24:54 -07:00
Santiago Pastorino
d1911a0707
TimeZones lazy load
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-20 21:40:24 -07:00
Jeremy Kemper
9934738ed5
Switch to TimezoneProxy for later support of deferred TZ loading
2010-04-20 10:54:37 -07:00
Santiago Pastorino
a0cc94b32e
utc_offset returns nil for unknown zones
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-14 21:15:15 -07:00
Santiago Pastorino
1b742ea9b1
delegate unknown timezones to TZInfo
2010-04-02 17:43:48 -03:00
Santiago Pastorino
90e3343ae5
utc_offset is no longer required on TimeZone and if it's not supplied we delegate to TZInfo
2010-04-02 16:46:56 -03:00
Santiago Pastorino
7d0eea179b
Don't cache the utc_offset we are already caching the timezone [ #4301 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-30 16:36:16 -07:00
José Valim
5231e4e8c5
Ensure to reference the proper TZInfo namespace [ #4268 state:resolved].
2010-03-26 13:24:08 +01:00
Geoff Buesing
1cda85d08a
Georgetown TimeZone is now mapped to "America/Guyana" instead of "America/Argentina/San_Juan" [ #1821 status:resolved]
2010-01-26 20:18:17 -06:00
Prem Sichanugrist
6e62e89737
Fix bug that causes TimeZone.seconds_to_utc_offset to returns wrong offset when hour < 0 and not in hundreds [ #3741 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-19 20:31:33 +01:00
Jeremy Kemper
7eb4f2ecc5
Consolidate date & time landscape: require 'active_support/time'
2009-11-14 01:13:54 -08:00
Jeremy Kemper
8e32830412
Fix unresolved string extension dependencies
2009-11-08 22:49:31 -08:00
Phil Ross
9b67b7ba2f
Edinburgh TimeZone references "Europe/London" instead of "Europe/Dublin" [ #3310 state:resolved]
2009-10-27 21:13:13 -05:00
Jeremy Kemper
0bd6e933c0
Restore split between require-time and runtime load path mungery. Simplifies vendor requires.
2009-09-24 18:38:18 -07:00
Joshua Peek
b2f0b8cbda
Rollback AS bundler work and improve activation of vendored dependencies
2009-09-13 22:55:46 -05:00
Geoff Buesing
71b1a4b39d
Kathmandu TimeZone: reference Asia/Kathmandu zone directly instead of through linked timezone
2009-06-07 21:43:44 -05:00
Alexander Dymo
2e7409f035
Change spelling of Kyev timezone to Kyiv [ #2613 state:resolved]
2009-05-10 11:59:03 -05:00
Jeremy Kemper
9cc8a75d84
Insert in sorted order to avoid TimeZone sort
2009-04-07 21:03:40 -07:00
Jeremy Kemper
d848b7817f
Encapsulate date/time core extensions and constant autoloads in active_support/core/time
2009-03-31 10:03:35 -07:00
Jeremy Kemper
609c1988d2
Tease out Object#acts_like? behaviors
2009-03-28 23:43:26 -07:00
Jeremy Kemper
47c7177ef5
Explicit Time/DateTime dependencies
2009-03-26 19:10:37 -07:00
Jeremy Kemper
e094940c2b
Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offset
2009-03-23 22:01:51 -07:00
Jeremy Kemper
1250faa858
Lazy-require tzinfo for TimeZone
2008-11-23 16:08:00 -08:00
gbuesing
020a411304
TimeZone: fix base offset for Sri Jayawardenepura. Anchor tests for zone offsets to more current date
2008-11-13 09:04:06 -06:00
Phil Ross
02df503d3b
TimeZone: Caracas GMT offset changed to -4:30 [ #1361 state:resolved]
2008-11-12 20:30:00 -06:00
Pratik Naik
18e7bf2865
Fix Brasilia timezone. [ #1180 state:resolved]
2008-10-17 23:43:26 +02:00
Manfred Stienstra
22f75d539d
Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9.
...
* Unicode methods are now defined directly on Chars instead of a handler
* Updated Unicode database to Unicode 5.1.0
* Improved documentation
2008-09-21 17:21:30 +02:00
Jamis Buck
5bbca48c22
Fix Sri Jayawardenepura time zone to map to Asia/Colombo
2008-09-10 13:32:10 -06:00
Ernie Miller
d0092dc44d
Added support for regexp matching of priority zones in time_zone_select [ #195 state:resolved]
2008-06-29 13:37:07 -05:00
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