Skip to content

Commit

Permalink
label_time() can handle both <POSIXt> *and* <difftime> classes
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jan 13, 2025
1 parent e7c29d7 commit adcd2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/scale-date.R
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ datetime_scale <- function(aesthetics, transform, trans = deprecated(),
check_string(date_labels)
labels <- function(self, x) {
tz <- self$timezone %||% "UTC"
label_date(date_labels, tz)(x)
label_time(date_labels, tz)(x)
}
}

Expand Down

0 comments on commit adcd2cb

Please sign in to comment.