From afa05760f188a6c2695c18a39d840d1dce1b419c Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 27 Oct 2023 12:42:36 +0200 Subject: [PATCH] Dashboard: display date and time in user selected formats --- emhttp/plugins/dynamix/nchan/update_3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/nchan/update_3 b/emhttp/plugins/dynamix/nchan/update_3 index 024ee30ce..547e3afdf 100755 --- a/emhttp/plugins/dynamix/nchan/update_3 +++ b/emhttp/plugins/dynamix/nchan/update_3 @@ -129,7 +129,7 @@ while (true) { $stat[] = "Errors: {$rx_errors}
Drops: {$rx_drops}
Overruns: {$rx_fifo}\0Errors: {$tx_errors}
Drops: {$tx_drops}
Overruns: {$tx_fifo}"; } // current date and time - $now = time(); + $now = time(); $clock = _var($display,'time')=='%R' ? date('G:i',$now) : date('g:i '.esc('').'a'.esc(''),$now); $date = _var($display,'date','%c')=='%c' ? date('l, F j, Y, '.esc(_('UTC')).'P',$now) : date(mix($display['date']).', '.esc(_('UTC')).'P',$now); $dst = date('I',$now) ? ' '._('DST').'' : '';