nginx/nginx-s3-gateway

How to display Date column in LocalTimeZone?

Closed this issue · 1 comments

Feature Overview

How to display Date column in LocalTimeZone?

Alternatives Considered

No response

Additional Context

No response

Converting to local timezone for the date of the file listed is out of scope of this project.

I think you may be able to do it by modifying the XSL template for listing such that you use JavaScript to read the UTC date returned in the listing and then convert it to the browser's local timezone.

Here's an example for how you would get the timezone offset for the browser. Once you have the offset, you would have to modify the DOM and change the time values in the HTML that was rendered by the XSL template.