Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

fix dayjs issue #76

Merged
merged 1 commit into from
Jun 8, 2022
Merged

fix dayjs issue #76

merged 1 commit into from
Jun 8, 2022

Conversation

SarthakSri98
Copy link

What does this PR do?

Fixes an issue related to dayjs types

What packages have been affected by this PR?

ella

Types of changes

What types of changes does your code introduce to this project?

Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Package version increase in any of the packages?

0.1.8

Checklist before merging

Put an x in the boxes that apply

  • These changes have been thoroughly tested.

  • Changes need to be immediately published on npm.

@@ -443,7 +443,8 @@ export function getISTDateTime(timeOffset = 0) {
const systemTime = new Date();
const currentTime = new Date(systemTime.getTime() + timeOffset);

const ISTVal = dayjs.tz(currentTime, 'Asia/Kolkata');
// using any for now, github issue link: https://github.com/iamkun/dayjs/issues/1617
const ISTVal = (dayjs as any).tz(currentTime, 'Asia/Kolkata');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refrain from using any, but I see the issue, can work on it later

@AdityaVandan AdityaVandan requested review from ankitchouhan1020, ristri and StTronn and removed request for ankitchouhan1020 June 8, 2022 13:16
@vikaz596 vikaz596 merged commit 83902f6 into develop Jun 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants