Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Report in Local Time instead of UTC format #36

Open
azizih4ck opened this issue Sep 14, 2023 · 1 comment
Open

Export Report in Local Time instead of UTC format #36

azizih4ck opened this issue Sep 14, 2023 · 1 comment

Comments

@azizih4ck
Copy link

First of all, i am grateful to have this nice tool. Thanks to Chris.

It will be great if the report can extract and project the actual GMT local time based on the gophish server time instead of UTC time format.

Thanks.

@chrismaddalena
Copy link
Owner

Hey there, that may be something you can configure. It's been a long time since I've looked at Gophish, but Goreport pulls the various timestamps from the Gophish API. If you can configure Gophish to use something other than UTC, the API may then return timestamps using your desired timezone. Otherwise, Goreport doesn't know the Gophish server's timezone, but the timestamps could be converted to a desired timezone locally.

I can't make a change in the script to do that right now, but I'd accept a pull request from anyone who wants to make the necessary edits. It should be simple enough with astimezone (https://docs.python.org/3/library/datetime.html#datetime.datetime.astimezone), especially if Gophish will always return UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants