diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py index 600fbeb5..a5f0ac52 100644 --- a/rootfs/standard/var/www/mynode/device_info.py +++ b/rootfs/standard/var/www/mynode/device_info.py @@ -128,6 +128,11 @@ def get_system_uptime(): uptime = uptime.strip() return uptime +def get_system_date(): + date = subprocess.check_output('date', shell=True) + date = date.strip() + return date + def get_device_serial(): serial = subprocess.check_output("cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2", shell=True) serial = serial.strip()