Last post Jun 03, 2020 02:22 PM by bruce (sqlwork.com)
Member
40 Points
158 Posts
Jun 03, 2020 03:32 AM|shijostephen|LINK
Hi,
Sometimes getTimezoneOffset() is returning 0
Code is as given below
var d = new Date().getTimezoneOffset(); var DailyActivity = {}; DailyActivity.offset = d; DailyActivity.WORK_DESC = ""; DailyActivity.WORK_CATEGORY =""; DailyActivity.WORK_LOCATION = ""; DailyActivity.JOB_NOS = "1"; $.ajax({ type: "POST", url: "/Account/SaveOffSet", data: '{obj:' + JSON.stringify(DailyActivity) + '}', contentType: "application/json; charset=utf-8", dataType: "json", success: function (data) { debugger; window.location.href = data; } });
Thanks & Regards
Shijo
Contributor
3140 Points
983 Posts
Jun 03, 2020 07:37 AM|Yang Shen|LINK
Hi shijostephen,
shijostephen Sometimes getTimezoneOffset() is returning 0
You mentioned "Sometimes", this sounds really fuzzy. Is this happening in all your browsers? What's the OS environment you are testing?
According to my research, this might happen when the OS is Linux and the sandbox mode is enabled.
The community will need more information about this issue, for example, is there any condition that this issue can be reproduced?
Best Regard,
Yang Shen
Jun 03, 2020 08:56 AM|shijostephen|LINK
This happens when browse the application in android mobile phone.
All-Star
58184 Points
15655 Posts
Jun 03, 2020 02:22 PM|bruce (sqlwork.com)|LINK
Which mobile browser and its version? Also what timezone is the mobile phone?
Member
40 Points
158 Posts
Sometimes getTimezoneOffset() is returning 0
Jun 03, 2020 03:32 AM|shijostephen|LINK
Hi,
Sometimes getTimezoneOffset() is returning 0
Code is as given below
Thanks & Regards
Shijo
Contributor
3140 Points
983 Posts
Re: Sometimes getTimezoneOffset() is returning 0
Jun 03, 2020 07:37 AM|Yang Shen|LINK
Hi shijostephen,
You mentioned "Sometimes", this sounds really fuzzy. Is this happening in all your browsers? What's the OS environment you are testing?
According to my research, this might happen when the OS is Linux and the sandbox mode is enabled.
The community will need more information about this issue, for example, is there any condition that this issue can be reproduced?
Best Regard,
Yang Shen
Member
40 Points
158 Posts
Re: Sometimes getTimezoneOffset() is returning 0
Jun 03, 2020 08:56 AM|shijostephen|LINK
Hi,
This happens when browse the application in android mobile phone.
Thanks & Regards
Shijo
All-Star
58184 Points
15655 Posts
Re: Sometimes getTimezoneOffset() is returning 0
Jun 03, 2020 02:22 PM|bruce (sqlwork.com)|LINK
Which mobile browser and its version? Also what timezone is the mobile phone?