mirror of
https://github.com/selfxyz/self.git
synced 2026-01-07 22:04:03 -05:00
fix returnNewDateString() (#1505)
This commit is contained in:
@@ -398,7 +398,7 @@ export async function getAadharRegistrationWindow() {
|
||||
}
|
||||
|
||||
export function returnNewDateString(timestamp?: string): string {
|
||||
const newDate = timestamp ? new Date(+timestamp * 1000) : new Date();
|
||||
const newDate = timestamp ? new Date(+timestamp) : new Date();
|
||||
|
||||
// Convert the UTC date to IST by adding 5 hours and 30 minutes
|
||||
const offsetHours = 5;
|
||||
|
||||
Reference in New Issue
Block a user