Skip to content

Commit adcd2cb

Browse files
committed
label_time() can handle both <POSIXt> *and* <difftime> classes
1 parent e7c29d7 commit adcd2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scale-date.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ datetime_scale <- function(aesthetics, transform, trans = deprecated(),
330330
check_string(date_labels)
331331
labels <- function(self, x) {
332332
tz <- self$timezone %||% "UTC"
333-
label_date(date_labels, tz)(x)
333+
label_time(date_labels, tz)(x)
334334
}
335335
}
336336

0 commit comments

Comments
 (0)