dreport: Add time and date to the BMC dump

Execute the script and append the output log file to BMC dump.

[timedatectl]
               Local time: Thu 2022-03-24 10:28:17 UTC
           Universal time: Thu 2022-03-24 10:28:17 UTC
                 RTC time: Thu 2022-03-24 10:28:17
                Time zone: UTC (UTC, +0000)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no

Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: Ie1ac4e730d93d1959b2543de00b98c7513552560
diff --git a/tools/dreport.d/plugins.d/timedate b/tools/dreport.d/plugins.d/timedate
new file mode 100644
index 0000000..0cc7488
--- /dev/null
+++ b/tools/dreport.d/plugins.d/timedate
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+#
+# config: 1234 30
+# @brief: Log date and time
+#
+
+. $DREPORT_INCLUDE/functions
+
+file_name="timedate.log"
+
+timedatectl="/usr/bin/timedatectl"
+if [ -f $timedatectl]; then
+    add_cmd_output "echo $'\n[timedatectl]'" "$file_name" "timedatectl"
+    add_cmd_output "$timedatectl" "$file_name" "timedatectl"
+fi
+