rename environment attribute from time to date

This commit is contained in:
yggverse 2024-05-06 20:06:13 +03:00
parent aa27bcc9b7
commit 1ec4b61970
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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