Getting users timezone on client side and passing it to server side within POST (on challenge complete), showing users stats with users timezone
After CR
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
window.common = (function(global) {
|
||||
const {
|
||||
$,
|
||||
moment,
|
||||
ga = (() => {}),
|
||||
common = { init: [] }
|
||||
} = global;
|
||||
@@ -51,7 +52,8 @@ window.common = (function(global) {
|
||||
name: common.challengeName,
|
||||
completedWith: didCompleteWith,
|
||||
challengeType: common.challengeType,
|
||||
solution
|
||||
solution,
|
||||
timezone: moment.tz.guess()
|
||||
};
|
||||
|
||||
$.post('/completed-challenge/', data, function(res) {
|
||||
|
Reference in New Issue
Block a user