From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] time.cgi: add current date-time to this WebGUI page
Date: Fri, 15 Mar 2024 10:24:58 +0000 [thread overview]
Message-ID: <1186B529-5C39-40CC-A571-0D55AC35154D@ipfire.org> (raw)
In-Reply-To: <42CFDCD2-4793-45CD-AEDF-380B02F9B02A@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 2887 bytes --]
Hello Jon,
Yes, this is good to go. I just didn’t have time to test the patch, yet.
I merged it yesterday.
-Michael
> On 14 Mar 2024, at 15:48, jon <jon.murphy(a)ipfire.org> wrote:
>
> Michael - is this good to go??
>
> Jon
>
>
>> On Mar 12, 2024, at 11:18 AM, jon <jon.murphy(a)ipfire.org> wrote:
>>
>> Back when I was playing with NTP and tried to make it better in 2022 I thought it would have been helpful but it wasn’t my focus and I did not have the skills to add it. Recently there were mentions about adding date/time in the community. So it seemed like a good time to add (no pun intended).
>>
>> Jon Murphy
>> jon.murphy(a)ipfire.org
>>
>>
>>
>>> On Mar 12, 2024, at 5:10 AM, Michael Tremer <michael.tremer(a)ipfire.org> wrote:
>>>
>>> Hello Jon,
>>>
>>> What is the motivation for this patch?
>>>
>>> -Michael
>>>
>>>> On 11 Mar 2024, at 23:45, Jon Murphy <jon.murphy(a)ipfire.org> wrote:
>>>>
>>>> - added words and date-time format to english (en.pl)
>>>> - other languages are needed
>>>> - seconds included since time is accurate to < .1s
>>>> https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=2234e8aacac2e0d0b06dac4513585c15c2b3b440
>>>>
>>>> Code-by: Leo-Andres Hofmann <hofmann(a)leo-andres.de>
>>>> Signed-off-by: Jon Murphy <jon.murphy(a)ipfire.org>
>>>> ---
>>>> html/cgi-bin/time.cgi | 4 ++++
>>>> langs/en/cgi-bin/en.pl | 2 ++
>>>> 2 files changed, 6 insertions(+)
>>>>
>>>> diff --git a/html/cgi-bin/time.cgi b/html/cgi-bin/time.cgi
>>>> index 57a02a4b6..04c1e771f 100644
>>>> --- a/html/cgi-bin/time.cgi
>>>> +++ b/html/cgi-bin/time.cgi
>>>> @@ -287,6 +287,10 @@ print <<END
>>>> </table>
>>>> END
>>>> ;
>>>> +
>>>> +my $now = strftime($Lang::tr{'timeformat'}, localtime);
>>>> +print "<hr>$Lang::tr{'system time'}: $now";
>>>> +
>>>> &Header::closebox();
>>>> &Header::openbox('100%',1,$Lang::tr{'ntp sync'});
>>>> print <<END
>>>> diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
>>>> index 667fb5d7e..2e036adb3 100644
>>>> --- a/langs/en/cgi-bin/en.pl
>>>> +++ b/langs/en/cgi-bin/en.pl
>>>> @@ -2462,6 +2462,7 @@
>>>> 'system log viewer' => 'System Log Viewer',
>>>> 'system logs' => 'System Logs',
>>>> 'system status information' => 'System Status Information',
>>>> +'system time' => 'System time (as of last page load)',
>>>> 'ta key' => 'TLS-Authentification-Key',
>>>> 'taa zombieload2' => 'TSX Async Abort/ZombieLoad v2',
>>>> 'tcp more reliable' => 'TCP (more reliable)',
>>>> @@ -2490,6 +2491,7 @@
>>>> 'time' => 'Time',
>>>> 'time date manually reset' => 'Time/Date manually reset.',
>>>> 'time server' => 'Time Server',
>>>> +'timeformat' => '%Y-%m-%d at %H:%M:%S %Z',
>>>> 'timeout must be a number' => 'Timeout must be a number.',
>>>> 'title' => 'Title',
>>>> 'to' => 'To',
>>>> --
>>>> 2.30.2
>>>>
>>>
>>
>
next prev parent reply other threads:[~2024-03-15 10:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <42CFDCD2-4793-45CD-AEDF-380B02F9B02A@ipfire.org>
2024-03-14 16:35 ` Adolf Belka
2024-03-14 17:19 ` jon
2024-03-15 10:28 ` Michael Tremer
2024-03-15 10:24 ` Michael Tremer [this message]
2024-03-11 23:45 Jon Murphy
2024-03-12 10:10 ` Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1186B529-5C39-40CC-A571-0D55AC35154D@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox