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

Possibly fix Loop time zones not being recognised in profile editor and reports #7833

Merged
merged 3 commits into from
Jan 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a workaround to fix Loop uploading non-ISO compliant time zone id…
…entifier
  • Loading branch information
sulkaharo committed Jan 15, 2023
commit 4af7531ab2627567b04027da92b38b59d11cf4bc
5 changes: 4 additions & 1 deletion lib/profilefunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ var moment = ctx.moment;
};

profile.getTimezone = function getTimezone (spec_profile) {
return profile.getCurrentProfile(null, spec_profile)['timezone'];
let rVal = profile.getCurrentProfile(null, spec_profile)['timezone'];
// Work around Loop uploading non-ISO compliant time zone string
if (rVal) rVal.replace('ETC','Etc');
return rVal;
};

profile.hasData = function hasData () {
Expand Down