@@ -578,6 +578,11 @@ export default function DayNightCard(props: { isNight: boolean, count: number })
function detailModalContent() {
var split = new Date().toString().split(' ');
var timezone = split[split.length - 2];
+ split.map(item => {
+ if (item.indexOf('GMT') != -1) {
+ timezone = item;
+ }
+ })
if (!authInfo || !(authInfo as any).lat) {
return <View style={{ height: 100, display: 'flex', alignItems: 'center', justifyContent: 'center', width: rpxToPx(750) }}>
<Text>暂无位置信息</Text>
@@ -308,12 +308,15 @@ export default function DayNightDetailPopup(props: {
if (props.authInfo && props.authInfo.timezone_id) {
var t1 = dayjs(now.getTime()).tz(props.authInfo.timezone_id)
if (now.getHours() == t1.hour() && now.getMinutes() == t1.minute()) {
+ console.log('a')
return false
}
else {
+ console.log('b')
return true
+ console.log('c')
@@ -71,6 +71,11 @@ export default function CircadianDetailPopup(props: { record: any, schedule?: an
function checkTimezone() {
var currentTZ = split[split.length - 2];
+ currentTZ = item;
var isDiff = false;
var isMulti = false;
var tempTZ = '';
@@ -106,6 +106,11 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number, d
@@ -407,6 +407,11 @@ export default function Page() {
var timeZoneFormatted = split[split.length - 2];
+ timeZoneFormatted = item;
var timeZoneId = ''
if (Taro.getSystemInfoSync().platform == 'ios') {
timeZoneId = dayjs.tz.guess()
@@ -72,7 +72,6 @@ export async function request<T>(param: RequestParam): Promise<T> {
timeZoneFormatted = item;
})
- console.log(split, timeZoneFormatted);
// var timeZoneLocation = Intl.DateTimeFormat().resolvedOptions().timeZone
header['content-type'] = 'application/json'