Browse: Home / Functions /

learndash_adjust_date_time_display

learndash_adjust_date_time_display( int $timestamp,  string $display_format = '' )

Converts a GMT timestamp to local timezone adjusted display.


Description #


Parameters #

$timestamp

(int) (Optional) The Unix timestamp to display. Default 0.

$display_format

(string) (Optional) The time display format. If empty, uses the format defined for WordPress under Settings -> General.

Default value: ''


Return #

(string) The adjusted date time display.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.2.0 Introduced.