1. 05 12月, 2012 1 次提交
    • C
      Replace comments' non-breaking spaces with spaces · 019df988
      claudiob 提交于
      Sometimes, on Mac OS X, programmers accidentally press Option+Space
      rather than just Space and don’t see the difference. The problem is
      that Option+Space writes a non-breaking space (0XA0) rather than a
      normal space (0x20).
      
      This commit removes all the non-breaking spaces inadvertently
      introduced in the comments of the code.
      019df988
  2. 02 12月, 2012 1 次提交
    • A
      Only take the date parts from Time.zone.now · c89b6c4c
      Andrew White 提交于
      When there are missing components in the Hash returned by
      Date._parse only the date components should default to the
      value of Time.zone.now, the time components should all
      default to zero.
      c89b6c4c
  3. 01 12月, 2012 1 次提交
    • A
      Make `Time.zone.parse` to work with JavaScript date strings · 005d9106
      Andrew White 提交于
      Chrome, Safari and Firefox serialize Date objects to strings such
      as 'Mon May 28 2012 00:00:00 GMT-0700 (PDT)'. When these strings
      are parsed the zone is interpreted as 'GMT-0700' which doesn't
      exist in the TzInfo list of timezones.
      
      By taking advantage of the improved date/time handling in 1.9.3
      we can use `Date._parse` and the `:offset` value which is parsed
      correctly.
      
      Three tests were amended to make them pass:
      
      1.  test_parse_with_old_date
      
          This needed changing to a different value because the original
          value was before EST was adopted so was being changed to a
          LMT (Local Mean Time) value after the change. It didn't before
          because `DateTime` just has offsets from UTC not timezones.
      
      2.  test_parse_should_not_black_out_system_timezone_dst_jump
      
          Changed the implementation of this test as the stubs were
          dependent on internal implementation details of the test.
          Confirmed that the modified test still failed when the
          implementation of `parse` was restored to pre-#5571.
      
      3.  test_parse_should_black_out_app_timezone_dst_jump
      
          Ditto.
      
      Closes #5770.
      005d9106
  4. 02 11月, 2012 1 次提交
  5. 15 9月, 2012 1 次提交
  6. 01 7月, 2012 1 次提交
  7. 14 5月, 2012 1 次提交
  8. 01 5月, 2012 2 次提交
  9. 14 4月, 2012 1 次提交
    • D
      Correcting some confusion. Pago Pago is part of American Samoa, not Samoa.... · 1d08ce5f
      Dave Gerton 提交于
      Correcting some confusion. Pago Pago is part of American Samoa, not Samoa. Further, Samoa and Tokelau jumped across the IDL from Dec 29 to Dec 31, 2011 switching from UTC-11 to UTC+13. American Samoa did not make the change and remains at UTC-11. Pacific/Fakaofo and Pacific/Apia are in TZInfo and documentation about the dateline change is in austalasia at IANA.
      1d08ce5f
  10. 25 3月, 2012 1 次提交
  11. 17 3月, 2012 3 次提交
  12. 07 3月, 2012 1 次提交
  13. 07 9月, 2011 1 次提交
    • T
      Make sure require_tzinfo only calls Kernel#require if TZInfo isn't already present. · 2147f35d
      Tim Lucas 提交于
      This wasn't a problem when require_tzinfo was only called from TimeZone#initialize, but now it's being called for every lookup to TimeZone.[] (via lazy_zones_map)
      
      TimeZone lookup can occur when unmarshalling TimeWithZone objects, which is where I first saw the big slowdown (500ms for each Rails action that loaded from Rails.cache)
      2147f35d
  14. 16 8月, 2011 2 次提交
  15. 23 5月, 2011 1 次提交
  16. 13 7月, 2010 1 次提交
  17. 03 7月, 2010 1 次提交
  18. 29 6月, 2010 1 次提交
  19. 22 6月, 2010 1 次提交
  20. 11 6月, 2010 1 次提交
  21. 03 6月, 2010 1 次提交
  22. 01 6月, 2010 1 次提交
  23. 21 4月, 2010 2 次提交
  24. 15 4月, 2010 1 次提交
  25. 03 4月, 2010 2 次提交
  26. 31 3月, 2010 1 次提交
  27. 26 3月, 2010 1 次提交
  28. 27 1月, 2010 1 次提交
  29. 20 1月, 2010 1 次提交
  30. 14 11月, 2009 1 次提交
  31. 09 11月, 2009 1 次提交
  32. 28 10月, 2009 1 次提交
  33. 25 9月, 2009 1 次提交
  34. 14 9月, 2009 1 次提交