1 import { updateServerTime as internalUpdateServerTime, serverTime } from 'pmcrypto-v6-canary/lib/serverTime';
3 let updateCalled = false;
5 * If `updateServerTime()` is never called, then `serverTime()` returns the device time.
6 * This helpers is for debugging purposes and returns whether the serverTime is indeed being used.
8 const wasServerTimeEverUpdated = () => updateCalled;
9 const updateServerTime = (serverDate: Date) => {
11 return internalUpdateServerTime(serverDate);
14 export { serverTime, updateServerTime, wasServerTimeEverUpdated };