Skip to content

NPSP error dates are printed in UTC rather than scheduled user's timezone. #7208

@sam-nolan-tearfund

Description

@sam-nolan-tearfund

Whenever I get emails for salesforce npsp problems, the error date appears to be printed in GMT regardless of the timezone of the salesforce organization:
image

They appear correctly in the salesforce interface:
image

This seems to be caused by this section of code:

String body = '\nError Type: ' + error.Error_Type__c;
body += '\nError Date: ' + error.Datetime__c;
body += '\nMessage: "' + error.Full_Message__c + '"';

I'm happy to contribute a fix, as I'm sure it would be very trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions