aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-07-05 08:15:05 -0600
committerSean Griffin <sean@thoughtbot.com>2014-07-05 08:15:05 -0600
commit8856ab00025f1c650051aef62ddd4ae866294e98 (patch)
tree862cce4210527308a0a572441114c566b931e49f
parent082d1e38cb146cb73256643cbd2972f9028ac8f2 (diff)
downloadrails-8856ab00025f1c650051aef62ddd4ae866294e98.tar.gz
rails-8856ab00025f1c650051aef62ddd4ae866294e98.tar.bz2
rails-8856ab00025f1c650051aef62ddd4ae866294e98.zip
`Time.today` -> `Date.today` in guides. [ci skip]
Removed mentions of non-existent methods, also added a mention for `Date.current`, which is analagous to `Time.current`. Closes #16061.
-rw-r--r--guides/source/active_support_core_extensions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index 4f37bf971a..36c8301150 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -3674,7 +3674,7 @@ t.advance(seconds: 1)
Active Support defines `Time.current` to be today in the current time zone. That's like `Time.now`, except that it honors the user time zone, if defined. It also defines `Time.yesterday` and `Time.tomorrow`, and the instance predicates `past?`, `today?`, and `future?`, all of them relative to `Time.current`.
-When making Time comparisons using methods which honor the user time zone, make sure to use `Time.current` and not `Time.now`. There are cases where the user time zone might be in the future compared to the system time zone, which `Time.today` uses by default. This means `Time.now` may equal `Time.yesterday`.
+When making Time comparisons using methods which honor the user time zone, make sure to use `Time.current` and `Date.current` instead of `Time.now` and `Date.today`. There are cases where the user time zone might be in the future compared to the system time zone, which `Date.today` uses by default. This means `Date.today` may equal `Date.yesterday`.
#### `all_day`, `all_week`, `all_month`, `all_quarter` and `all_year`