Skip to content

Commit

Permalink
Merge pull request #1339 from Poeticrow/fix/correct-return-timezone-data
Browse files Browse the repository at this point in the history
Fix/correct return timezone data
  • Loading branch information
incredible-phoenix246 authored Mar 1, 2025
2 parents af961ea + 9037e09 commit b661083
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ fabric.properties
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore


# DB
data/db/

docker-compose.yml
# User-specific files
*.suo
*.user
Expand Down
5 changes: 4 additions & 1 deletion src/modules/timezones/timezones.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ export class TimezonesService {
try {
const timezones = await this.timezoneRepository.find();
const formattedTimezones = timezones.map(tz => ({
timezone: `(UTC ${tz.gmtOffset}) ${tz.description}`,
timezone: tz.timezone,
gmtOffset: tz.gmtOffset,
description: tz.description,
}));

return {
status_code: HttpStatus.OK,
message: SUCCESS,
Expand Down

0 comments on commit b661083

Please sign in to comment.