|
@@ -65,8 +65,14 @@ export async function request<T>(param: RequestParam): Promise<T> {
|
|
|
const token = global.token ? global.token : ''; //await getStorage('token')
|
|
const token = global.token ? global.token : ''; //await getStorage('token')
|
|
|
|
|
|
|
|
var split = new Date().toString().split(' ');
|
|
var split = new Date().toString().split(' ');
|
|
|
|
|
+
|
|
|
var timeZoneFormatted = split[split.length - 2];
|
|
var timeZoneFormatted = split[split.length - 2];
|
|
|
- console.log(split,timeZoneFormatted);
|
|
|
|
|
|
|
+ split.map(item => {
|
|
|
|
|
+ if (item.indexOf('GMT') != -1) {
|
|
|
|
|
+ timeZoneFormatted = item;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log(split, timeZoneFormatted);
|
|
|
// var timeZoneLocation = Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
// var timeZoneLocation = Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
|
|
|
|
|
|
header['content-type'] = 'application/json'
|
|
header['content-type'] = 'application/json'
|