Skip to content

Commit

Permalink
Complete change and add to CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ModProg committed Feb 28, 2022
1 parent 22b19df commit 80e2eb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -19,6 +19,7 @@ Versions with only mechanical changes will be omitted from the following list.
* Implement `DurationRound` for `NaiveDateTime`
* Add `DateTime::from_local()` to construct from given local date and time (#572)
* Correct build for wasm32-unknown-emscripten target (#568)
* Change `Local::now()` and `Utc::now()` documentation from "current date" to "current date and time" (#647)

## 0.4.19

Expand Down
4 changes: 2 additions & 2 deletions src/offset/local.rs
Expand Up @@ -96,13 +96,13 @@ impl Local {
Local::now().date()
}

/// Returns a `DateTime` which corresponds to the current date.
/// Returns a `DateTime` which corresponds to the current date and time.
#[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"), feature = "wasmbind")))]
pub fn now() -> DateTime<Local> {
tm_to_datetime(Timespec::now().local())
}

/// Returns a `DateTime` which corresponds to the current date.
/// Returns a `DateTime` which corresponds to the current date and time.
#[cfg(all(target_arch = "wasm32", not(target_os = "wasi"), feature = "wasmbind"))]
pub fn now() -> DateTime<Local> {
use super::Utc;
Expand Down
2 changes: 1 addition & 1 deletion src/offset/utc.rs
Expand Up @@ -42,7 +42,7 @@ impl Utc {
Utc::now().date()
}

/// Returns a `DateTime` which corresponds to the current date.
/// Returns a `DateTime` which corresponds to the current date and time.
#[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"), feature = "wasmbind")))]
pub fn now() -> DateTime<Utc> {
let now =
Expand Down

0 comments on commit 80e2eb3

Please sign in to comment.