Hi
I am using htmlextra report with .hbs template to create a dashboard of test execution using newman and postman collection. The sample hbs file was shared by @danny-dainton. I have customized it according to our requirement.
It is working fine. No issues. The time is displayed as below. I would like to show this time with timezone. Examples: PDT America/Los_Angeles and Indian Standard time.
I tried adding “ZZ” to moment date. It shows UTC time as “Thursday, 23 May 2019 14:53:59 -0700”. [
{{moment date format=“dddd, DD MMMM YYYY HH:mm:ss ZZ”}}
]Should I write JS function to get the date and time with time zone? OR is there a simple way to show the time in specific zone like PDT zone?
Thursday, 23 May 2019 14:53:59
Here is the snippet from hbs file.
"
Dashboard
{{moment date format="dddd, DD MMMM YYYY HH:mm:ss "}}
"How this is executed: newman run collections/QE_tests.json -e collections/env.json -r htmlextra --reporter-htmlextra-export statusdashboard.html --reporter-htmlextra-template test.hbs
Thanks, rjayaram