How can I change the timezone in k6 html report

Hello Team,

I am generatiing an html report in k6, however the time of the test within the report is different than my timezone. How can I change it to a PST timezone.
Am using the below script to generate it,

export function handleSummary(data) {
  return {
    "summary.html": htmlReport(data),
  };
}

Hi @tenzin19,

You can set custom title for the htmlReport(). Try this:

export function handleSummary(data) {
  return {
    'summary.html' : htmlReport(data, {title: new Date().toString()}),
  };
}
1 Like