sysutils/apcupsd: update via automated scripts

This commit is contained in:
Franco Fichtner
2022-06-02 09:32:10 +02:00
parent 3bcbadaf1c
commit fbc31e1b9f
3 changed files with 8 additions and 2 deletions

View File

@@ -5,7 +5,9 @@ Copyright (c) 2021 Axelrtgs
Copyright (c) 2019 Cloudfence - Julio Camargo (JCC)
Copyright (c) 2005-2006 Colin Smith <ethethlay@gmail.com>
Copyright (c) 2020 D. Domig
Copyright (c) 2021 Dan Lundqvist
Copyright (c) 2011 Dan Myers
Copyright (c) 2021 David Berry
Copyright (c) 2017-2018 David Harrigan
Copyright (c) 2021 David Hughes
Copyright (c) 2014-2022 Deciso B.V.
@@ -34,6 +36,7 @@ Copyright (c) 2022 Markus Reiter <me@reitermark.us>
Copyright (c) 2020 Martin Wasley
Copyright (c) 2022 Marvo2011
Copyright (c) 2017-2021 Michael Muenz <m.muenz@gmail.com>
Copyright (c) 2021 Nicola Pellegrini
Copyright (c) 2021 Nim G
Copyright (c) 2004-2012 Scott Ullrich <sullrich@gmail.com>
Copyright (c) 2010 Seth Mos <seth.mos@dds.nl>

View File

@@ -91,6 +91,7 @@ security/softether -- Cross-platform Multi-protocol VPN Program (development onl
security/stunnel -- Stunnel TLS proxy
security/tinc -- Tinc VPN
security/tor -- The Onion Router
sysutils/apcupsd -- APCUPSD - APC UPS daemon (development only)
sysutils/api-backup -- Provide the functionality to download the config.xml
sysutils/apuled -- PC Engine APU LED control (development only)
sysutils/boot-delay -- Apply a persistent 10 second boot delay (pending removal)

View File

@@ -96,7 +96,8 @@ class ServiceController extends ApiMutableServiceControllerBase
return $status;
}
private function tryParseDateTime($dateTimeString) {
private function tryParseDateTime($dateTimeString)
{
$formats = [
'Y-m-d H:i:s P', // 2021-12-27 17:51:42 +0100
'D M d H:i:s T Y' // Sat Sep 16 17:13:00 CEST 2000
@@ -110,7 +111,8 @@ class ServiceController extends ApiMutableServiceControllerBase
return $dateTimeString;
}
private function tryParseDate($dateString) {
private function tryParseDate($dateString)
{
$formats = [
'Y-m-d', // 2021-12-27
'm/d/y', // 12/27/21