From 1ec4b61970f434b25c54a12c62d0bd491c9a8e0a Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 6 May 2024 20:06:13 +0300 Subject: [PATCH] rename environment attribute from time to date --- README.md | 2 +- src/Controller/Nex.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 523a963..fd3e96d 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Provide arguments in `key=value` format, separated by space * `port` - default value depends of server `type` selected, for example `1900` for `nex` or `1965` for `gemini` * `file` - index **file name** that server try to open on directory path requested, disabled by default * `list` - show content listing in the requested directory (when index `file` not found), enabled by default -* `time` - show file modification time as the alt text in directory listing (useful for gemfeed), disabled by default +* `date` - show file modification date as the alt text in directory listing (useful for gemfeed), disabled by default * `fail` - **absolute path** to the failure template (e.g. `/path/to/error.gmi`), disabled by default * `dump` - `enable` or `disable` server debug feature, enabled by default diff --git a/src/Controller/Nex.php b/src/Controller/Nex.php index ba838b3..a5aa544 100644 --- a/src/Controller/Nex.php +++ b/src/Controller/Nex.php @@ -135,7 +135,7 @@ class Nex implements MessageComponentInterface ]; // Append modification time on enabled - if ($item['time'] && $this->_environment->get('time')) + if ($item['time'] && $this->_environment->get('date')) { $link[] = date( 'Y-m-d', // gemfeed format