Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify docs for DateTime::with_timezone #747

Merged
merged 1 commit into from Jul 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/datetime/mod.rs
Expand Up @@ -313,7 +313,7 @@ impl<Tz: TimeZone> DateTime<Tz> {
}

/// Changes the associated time zone.
/// This does not change the actual `DateTime` (but will change the string representation).
/// The returned `DateTime` references the same instant of time from the perspective of the provided time zone.
#[inline]
pub fn with_timezone<Tz2: TimeZone>(&self, tz: &Tz2) -> DateTime<Tz2> {
tz.from_utc_datetime(&self.datetime)
Expand Down