I am playing around with Lightning Web Components and I was wondering if there is a way to pull the UserInfo.getTimeZone() using Lightning Data Service?

I was thinking along the lines of:

import getTimeZone from '@salesforce/schema/UserInfo.getTimeZone';

export default class MyTestClass extends LightningElement {
    @wire(getTimeZone) timeZone;

Access Internalization Properties

import { LightningElement } from ‘lwc’;
import TIME_ZONE from '@salesforce/i18n/timeZone';

export default class Example extends LightningElement {
    const timeZone = TIME_ZONE;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.