Skip to content

Update JSON feedback export filename with UTC timestamp#628

Open
Anujkumar9081 wants to merge 1 commit intooutreachy:masterfrom
Anujkumar9081:feedback-export-header-update
Open

Update JSON feedback export filename with UTC timestamp#628
Anujkumar9081 wants to merge 1 commit intooutreachy:masterfrom
Anujkumar9081:feedback-export-header-update

Conversation

@Anujkumar9081
Copy link

Updated the JSON feedback export functionality to include a UTC timestamp in exported filenames.

This prevents filename collisions and makes it easier to track when exports were generated.

Changes Made

  • Updated home/views.py to append a UTC timestamp to the Content-Disposition filename for initial and midpoint feedback exports.
  • Used datetime.now(timezone.utc) to ensure timestamps are always in UTC.
  • Timestamp format: YYYY-MM-DD-HH-mm.
  • Added a short inline comment explaining the format.

Example
Before:
outreachy-round-initial-feedback.json

After:
outreachy-round-initial-feedback-2023-10-27-14-30.json

UTC is used to avoid inconsistencies across different server timezones.

Fixes #610.

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

Successfully merging this pull request may close these issues.

JSON files exporting feedback submissions should have filenames with export timestamps

1 participant