update db str
This commit is contained in:
@@ -171,3 +171,16 @@ export async function getEntriesByDate(
|
||||
{ token }
|
||||
)
|
||||
}
|
||||
// ============================================
|
||||
// TIMEZONE CONVERSION ENDPOINTS
|
||||
// ============================================
|
||||
|
||||
export async function convertUTCToIST(utcTimestamp: string) {
|
||||
return apiCall<{ utc: string; ist: string }>(
|
||||
`/api/entries/convert-timestamp/utc-to-ist`,
|
||||
{
|
||||
method: 'POST',
|
||||
body: { timestamp: utcTimestamp },
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user