wit icon indicating copy to clipboard operation
wit copied to clipboard

Feature request: timezone for Built-In NLP

Open bmcclenahan opened this issue 9 years ago • 21 comments

Do you want to request a feature, report a bug, or ask a question about wit? question/bug

What is the current behavior? when I use built-in NLP with facebook messenger, the timezone used seems to be the default setting for the wit app. It does not use the client timezone setting when interpreting datetime entities

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior? I would expect that built-in NLP would use the timezone from the messenger client, so that datetime entities are correct for that client.

What is the App ID where you are experiencing this issue (if applicable)?

bmcclenahan avatar Sep 13 '17 10:09 bmcclenahan

very good feedback, thanks for posting. Let's investigate how and when we can add it.

l5t avatar Sep 13 '17 17:09 l5t

Hi Laurent,

I'd be interested to hear if you're making any progress with this.

While you're considering it, could you think about how to incorporate other useful query parameters like "n" and "verbose" in the build-in NLP model.

Kind regards Bruce


From: Laurent Landowski [email protected] Sent: Thursday, 14 September 2017 3:49 AM To: wit-ai/wit Cc: bmcclenahan; Author Subject: Re: [wit-ai/wit] time zone for build-in NLP (#777)

very good feedback, thanks for posting. Let's investigate how and when we can add it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/wit-ai/wit/issues/777#issuecomment-329245533, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYz9TaTiUvZykf6lk-OTLpS15HcxrVaAks5siBXFgaJpZM4PV30L.

bmcclenahan avatar Oct 07 '17 23:10 bmcclenahan

Yes we are making progress and hope to release it in next month. Good idea also with the advance settings (n-best and verbose). We will try to include them as well.

l5t avatar Oct 12 '17 17:10 l5t

Thanks for the update I'm looking forward to it Bruce

On 13 Oct 2017, at 3:01 am, Laurent Landowski <[email protected]mailto:[email protected]> wrote:

Yes we are making progress and hope to release it in next month. Good idea also with the advance settings (n-best and verbose). We will try to include them as well.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/wit-ai/wit/issues/777#issuecomment-336200375, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYz9TX3yGbauXvNoi4hOyJepTpPMIinZks5srkXIgaJpZM4PV30L.

bmcclenahan avatar Oct 12 '17 22:10 bmcclenahan

Added https://wit.ai/blog/2017/11/07/messenger-built-in-nlp.

l5t avatar Nov 16 '17 17:11 l5t

How exactly is the timezone meant to work. I reset the timezone in my messenger client to UTC and confirmed it by querying the profile of my user. when I entered "midnight"the NLP returned a datetime with value 2017-11-20T00:00:00.000+10:00 it got the midnight right but the +10 indicates it hasn't picked up the timezone of the user/client +10 is the default timezone of my app is there another setting to force the client timezone to override ?

bmcclenahan avatar Nov 19 '17 06:11 bmcclenahan

Hi Laurent,

I was so excited to see this released, and then disappointed in finding it doesn't work as expected.

I reset the timezone in my messenger client to UTC and confirmed it by querying the profile of my user. when I entered "midnight"the NLP returned a datetime with value 2017-11-20T00:00:00.000+10:00 it got the midnight right but the +10 indicates it hasn't picked up the timezone of the user/client +10 is the default timezone of my app is there another setting to force the client timezone to override ?

Thanks Bruce


From: Laurent Landowski [email protected] Sent: Friday, 17 November 2017 3:07 AM To: wit-ai/wit Cc: bmcclenahan; Author Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Added https://wit.ai/blog/2017/11/07/messenger-built-in-nlphttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwit.ai%2Fblog%2F2017%2F11%2F07%2Fmessenger-built-in-nlp&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C9324ad52f07b412104f108d52d14949b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636464488764249632&sdata=%2F2HEONX74PGvhaPRz2TFIqKjrGX5nA7SMSTOEhWD7G4%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-344991176&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C9324ad52f07b412104f108d52d14949b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636464488764249632&sdata=w0gbUQqtOnAolgA2TuAO%2BVKBOxlV5WLLq%2B2%2Bin%2BQqQ4%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYz9TQVkVyGvmGN6Hti1Y_nHzvA3uwylks5s3GvqgaJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C9324ad52f07b412104f108d52d14949b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636464488764249632&sdata=2NLuanVznCO%2Bj%2FJk4sL3c4pnLoc8EPZ%2FmDDnY9KsRWg%3D&reserved=0.

bmcclenahan avatar Nov 19 '17 06:11 bmcclenahan

cc @stopachka any idea? I thought we tested this

l5t avatar Nov 19 '17 17:11 l5t

Hey team, will look into this and update. There is a potential lag between timezone vs offset, that we'd need to fix up.

stopachka avatar Nov 19 '17 19:11 stopachka

Thanks Guys.

I probably only tested for 10-15 minutes after changing the timezone. A lag won't have material impact on my application. How long would I need to wait for the change in timezone to take effect ?

Regards Bruce


From: Stepan Parunashvili [email protected] Sent: Monday, 20 November 2017 5:36 AM To: wit-ai/wit Cc: bmcclenahan; Author Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Hey team, will look into this and update. There is a potential lag between timezone vs offset, that we'd need to fix up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-345543162&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4d316d9d9b4b4900413408d52f84da52%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636467170005520545&sdata=JjVp%2BLRAWa4mdr8aEJkmxBK6UgQpTnXLejU4IfTCFaU%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYz9TfLJKnXJB0-WcXW2JneXEjhUPMDoks5s4INFgaJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4d316d9d9b4b4900413408d52f84da52%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636467170005520545&sdata=qccON0PDSwDjdelQDsuzjomqjJdGveor6KHRuR%2FwLUE%3D&reserved=0.

bmcclenahan avatar Nov 19 '17 23:11 bmcclenahan

Hey @bmcclenahan -- could you walk me through exactly how you set your timezone on messenger? (aiming to reproduce)

stopachka avatar Nov 23 '17 00:11 stopachka

Hi Stepan,

I had a bit of trouble with this on my phone as there's no setting for it in the messenger App.

I ended up doing it on my windows PC - I set the timezone on the PC, then logged out of facebook in the browser and logged back in and used messenger from there. This was effective and even caused messages from my phone to then arrive in the new timezone.

I hope this helps. Bruce


From: Stepan Parunashvili [email protected] Sent: Thursday, 23 November 2017 10:28 AM To: wit-ai/wit Cc: bmcclenahan; Mention Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Hey @bmcclenahanhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbmcclenahan&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C7aca69d8e45c47f53f5d08d532090f36%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636469936850342477&sdata=pfr3780k6ykAr6MYhk4L8U2uT9pd5WWRIX0kpBW1HW8%3D&reserved=0 -- could you walk me through exactly how you set your timezone on messenger? (aiming to reproduce)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-346508180&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C7aca69d8e45c47f53f5d08d532090f36%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636469936850342477&sdata=xLGZJ85E%2FtchqLaqhJzn2oFA%2FxqW5MM7vSu2HGqYy6g%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYz9TdTxVus4I1VaMiuasi0ZLW8ZF2Xiks5s5LwRgaJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C7aca69d8e45c47f53f5d08d532090f36%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636469936850342477&sdata=aiw%2B9Y0vLplHONAk8JkrHfuWFes4P2D4cGw%2Bd23WIio%3D&reserved=0.

bmcclenahan avatar Nov 23 '17 08:11 bmcclenahan

Hi guys,

I set the timezone in facebook to UTC and waited 8 hours - The messenger user profile API was reporting timezone as 0 and the NLP was showing +10 in datetime entities. I'm not sure if the +10 is coming from the wit App default, or my previous facebook timezone. I might try to check that next.

Bruce


From: Stepan Parunashvili [email protected] Sent: Monday, 20 November 2017 5:36 AM To: wit-ai/wit Cc: bmcclenahan; Author Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Hey team, will look into this and update. There is a potential lag between timezone vs offset, that we'd need to fix up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-345543162&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4d316d9d9b4b4900413408d52f84da52%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636467170005520545&sdata=JjVp%2BLRAWa4mdr8aEJkmxBK6UgQpTnXLejU4IfTCFaU%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYz9TfLJKnXJB0-WcXW2JneXEjhUPMDoks5s4INFgaJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4d316d9d9b4b4900413408d52f84da52%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636467170005520545&sdata=qccON0PDSwDjdelQDsuzjomqjJdGveor6KHRuR%2FwLUE%3D&reserved=0.

bmcclenahan avatar Nov 24 '17 22:11 bmcclenahan

Hey @bmcclenahan -- What is your app-id? (Can check for you where it is coming from)


re: Discrepancy between Timezone and Offset from the Profile API

What is happening is:

  • We get the timezone of the user, which is dependent on both the offset, and the location info we know about the user. (For example, from their IP address history)
  • This means that when you change the offset on your mac, the offset information will save right away, but the timezone information will stay in a limbo state, until it's more certain about where you are.

@bmcclenahan -- what would be the ideal wait time for your use case? I am looking into a few options:

  • The first is to keep this behavior, and wait until we are more certain
  • The second is to defer to the offset, when we are not sure about the location

stopachka avatar Dec 01 '17 06:12 stopachka

Hi Stepan,

My app id is

58aecb8b-e2a7-46ff-8f5d-3a04e81575ac

the way you are doing the timezone is more thorough - however, it makes it quite difficult to test.

The reverse situation could occur when someone travels but fixes their phone in their home timezone. In this case the user is making a decision about the timezone they want to operate in, and the IP location could work against this by creating a limbo state .

For my case I would be happy with the simpler option of just using the offset.

If this offset comes to facebook from the setting on the user's device, it's easier to explain to the user, and easier to test. The addition of the IP location is good when it's confirming, but bad when it's in disagreement as it introduces confusion where perhaps none really exists.

Thanks for asking about this

Kind regards Bruce


From: Stepan Parunashvili [email protected] Sent: Friday, 1 December 2017 4:22 PM To: wit-ai/wit Cc: bmcclenahan; Mention Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Hey @bmcclenahanhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbmcclenahan&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata=bZwjUl%2Bey1nsTU1pNEmlVdDWGZxc33Z7cvYsTL6%2FkXo%3D&reserved=0 -- What is your app-id? (Can check for you where it is coming from)


re: Discrepancy between Timezone and Offset from the Profile API

What is happening is:

  • We get the timezone of the user, which is dependent on both the offset, and the location info we know about the user. (For example, from their IP address history)
  • This means that when you change the offset on your mac, the offset information will save right away, but the timezone information will stay in a limbo state, until it's more certain about where you are.

@bmcclenahanhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbmcclenahan&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata=bZwjUl%2Bey1nsTU1pNEmlVdDWGZxc33Z7cvYsTL6%2FkXo%3D&reserved=0 -- what would be the ideal wait time for your use case? I am looking into a few options:

  • The first is to keep this behavior, and wait until we are more certain
  • The second is to defer to the offset, when we are not sure about the location

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-348411931&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata=AC6OhomgrZ4CkXFE4jFkaN2OaQcziYkV7cbvLIJHqpI%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYz9TS-DBf-yX931PFDGoHTYAPno7lrkks5s75sdgaJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata=kqBTkxkX3HXIe%2Faf4Gw8B5F4IPYEQVXOYzi17QTqZqY%3D&reserved=0.

bmcclenahan avatar Dec 01 '17 06:12 bmcclenahan

Cheers Bruce -- The problem with using only offsets are, that we lose the information about which specific timezone the user is in.

There may seem like there is little difference, but consider if someone says:

  • 3 weeks from now at 2pm
  • It is possible that within the next three weeks, their timezone will undergo daylight savings, and that offset will no longer be correct

You are right though that this is quite hard to test, and the point about specifically setting their timezone is also valid, and we'll need to make sure these are addressed in the final solution

On Thu, Nov 30, 2017 at 10:40 PM, bmcclenahan [email protected] wrote:

Hi Stepan,

My app id is

58aecb8b-e2a7-46ff-8f5d-3a04e81575ac

the way you are doing the timezone is more thorough - however, it makes it quite difficult to test.

The reverse situation could occur when someone travels but fixes their phone in their home timezone. In this case the user is making a decision about the timezone they want to operate in, and the IP location could work against this by creating a limbo state .

For my case I would be happy with the simpler option of just using the offset.

If this offset comes to facebook from the setting on the user's device, it's easier to explain to the user, and easier to test. The addition of the IP location is good when it's confirming, but bad when it's in disagreement as it introduces confusion where perhaps none really exists.

Thanks for asking about this

Kind regards Bruce


From: Stepan Parunashvili [email protected] Sent: Friday, 1 December 2017 4:22 PM To: wit-ai/wit Cc: bmcclenahan; Mention Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Hey @bmcclenahan<https://nam01.safelinks.protection.outlook. com/?url=https%3A%2F%2Fgithub.com%2Fbmcclenahan&data=02% 7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee% 7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata= bZwjUl%2Bey1nsTU1pNEmlVdDWGZxc33Z7cvYsTL6%2FkXo%3D&reserved=0> -- What is your app-id? (Can check for you where it is coming from)


re: Discrepancy between Timezone and Offset from the Profile API

What is happening is:

  • We get the timezone of the user, which is dependent on both the offset, and the location info we know about the user. (For example, from their IP address history)
  • This means that when you change the offset on your mac, the offset information will save right away, but the timezone information will stay in a limbo state, until it's more certain about where you are.

@bmcclenahan<https://nam01.safelinks.protection.outlook. com/?url=https%3A%2F%2Fgithub.com%2Fbmcclenahan&data=02% 7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee% 7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata= bZwjUl%2Bey1nsTU1pNEmlVdDWGZxc33Z7cvYsTL6%2FkXo%3D&reserved=0> -- what would be the ideal wait time for your use case? I am looking into a few options:

  • The first is to keep this behavior, and wait until we are more certain
  • The second is to defer to the offset, when we are not sure about the location

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<https://nam01. safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub. com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-348411931&data=02%7C01% 7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee% 7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata= AC6OhomgrZ4CkXFE4jFkaN2OaQcziYkV7cbvLIJHqpI%3D&reserved=0>, or mute the thread<https://nam01.safelinks.protection.outlook. com/?url=https%3A%2F%2Fgithub.com%2Fnotifications% 2Funsubscribe-auth%2FAYz9TS-DBf-yX931PFDGoHTYAPno7lrkks5s75sdg aJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com% 7C4c29bd59765b471b44c208d53883e1ee%7C84df9e7fe9f640afb435aaaaaaaa aaaa%7C1%7C0%7C636477061438955570&sdata=kqBTkxkX3HXIe% 2Faf4Gw8B5F4IPYEQVXOYzi17QTqZqY%3D&reserved=0>.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/777#issuecomment-348414555, or mute the thread https://github.com/notifications/unsubscribe-auth/AA8F_u-Nj5DoDkpDDuF8exL-NTRW4E6Qks5s759ygaJpZM4PV30L .

stopachka avatar Dec 01 '17 17:12 stopachka

Update: I tested by using a VPN, to log into Facebook from New York, with a New York Offset. The change in timezone in this case was instant.

This means you can expect the timezone to match exactly where the users are coming from!

Let me know if this works for you @bmcclenahan, or if you have other thoughts!

stopachka avatar Dec 02 '17 00:12 stopachka

Thank you for confirming this - much appreciated ! Bruce


From: Stepan Parunashvili [email protected] Sent: Saturday, 2 December 2017 10:23 AM To: wit-ai/wit Cc: bmcclenahan; Mention Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Update: I tested by using a VPN, to log into Facebook from New York, with a New York Offset. The change in timezone in this case was instant.

This means you can expect the timezone to match exactly where the users are coming from!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-348649606&data=02%7C01%7Cbmcclenahan%40hotmail.com%7Ced497c38b87542f5182308d5391ae1ec%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477709972061665&sdata=esZVzKz2SQDClBNQryuLl%2Bu3rck%2Ft38PC1YFNAOku9g%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYz9TXY_JMkQlCNSxG4VYikAO6883YKbks5s8Jh0gaJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com%7Ced497c38b87542f5182308d5391ae1ec%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477709972061665&sdata=vJ2d89V2ARfzekXMA6dnQwzdJcWnXe6JAenwks6vJTM%3D&reserved=0.

bmcclenahan avatar Dec 02 '17 02:12 bmcclenahan

Yes, that's a very specific use case, and you are correct that the simple offset might not return the correct result. It's a shame Fb simplified it down to a number.

I look forward to your solution. Thanks for listening Bruce

PS: I'm not sure if this is the place, but there's an associated feature request -

would you consider reporting the timezone in the NLP object, possibly in the verbose option ?

While it's possible to infer the user's timezone from the datetime entity, there are situations when there us no datetime entity but the bot/app needs the timezone for its response : eg user: when is my next meeting bot: you are meeting a client at 2pm on 3 Dec <== would be helpful to format this according to the timezone of the user

thanks Bruce


From: Stepan Parunashvili [email protected] Sent: Saturday, 2 December 2017 3:22 AM To: wit-ai/wit Cc: bmcclenahan; Mention Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Cheers Bruce -- The problem with using only offsets are, that we lose the information about which specific timezone the user is in.

There may seem like there is little difference, but consider if someone says:

  • 3 weeks from now at 2pm
  • It is possible that within the next three weeks, their timezone will undergo daylight savings, and that offset will no longer be correct

You are right though that this is quite hard to test, and the point about specifically setting their timezone is also valid, and we'll need to make sure these are addressed in the final solution

On Thu, Nov 30, 2017 at 10:40 PM, bmcclenahan [email protected] wrote:

Hi Stepan,

My app id is

58aecb8b-e2a7-46ff-8f5d-3a04e81575ac

the way you are doing the timezone is more thorough - however, it makes it quite difficult to test.

The reverse situation could occur when someone travels but fixes their phone in their home timezone. In this case the user is making a decision about the timezone they want to operate in, and the IP location could work against this by creating a limbo state .

For my case I would be happy with the simpler option of just using the offset.

If this offset comes to facebook from the setting on the user's device, it's easier to explain to the user, and easier to test. The addition of the IP location is good when it's confirming, but bad when it's in disagreement as it introduces confusion where perhaps none really exists.

Thanks for asking about this

Kind regards Bruce


From: Stepan Parunashvili [email protected] Sent: Friday, 1 December 2017 4:22 PM To: wit-ai/wit Cc: bmcclenahan; Mention Subject: Re: [wit-ai/wit] Feature request: timezone for Built-In NLP (#777)

Hey @bmcclenahan<https://nam01.safelinks.protection.outlook. com/?url=https%3A%2F%2Fgithub.com%2Fbmcclenahan&data=02% 7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee% 7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata= bZwjUl%2Bey1nsTU1pNEmlVdDWGZxc33Z7cvYsTL6%2FkXo%3D&reserved=0> -- What is your app-id? (Can check for you where it is coming from)


re: Discrepancy between Timezone and Offset from the Profile API

What is happening is:

  • We get the timezone of the user, which is dependent on both the offset, and the location info we know about the user. (For example, from their IP address history)
  • This means that when you change the offset on your mac, the offset information will save right away, but the timezone information will stay in a limbo state, until it's more certain about where you are.

@bmcclenahan<https://nam01.safelinks.protection.outlook. com/?url=https%3A%2F%2Fgithub.com%2Fbmcclenahan&data=02% 7C01%7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee% 7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata= bZwjUl%2Bey1nsTU1pNEmlVdDWGZxc33Z7cvYsTL6%2FkXo%3D&reserved=0> -- what would be the ideal wait time for your use case? I am looking into a few options:

  • The first is to keep this behavior, and wait until we are more certain
  • The second is to defer to the offset, when we are not sure about the location

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<https://nam01. safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub. com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-348411931&data=02%7C01% 7Cbmcclenahan%40hotmail.com%7C4c29bd59765b471b44c208d53883e1ee% 7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477061438955570&sdata= AC6OhomgrZ4CkXFE4jFkaN2OaQcziYkV7cbvLIJHqpI%3D&reserved=0>, or mute the thread<https://nam01.safelinks.protection.outlook. com/?url=https%3A%2F%2Fgithub.com%2Fnotifications% 2Funsubscribe-auth%2FAYz9TS-DBf-yX931PFDGoHTYAPno7lrkks5s75sdg aJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com% 7C4c29bd59765b471b44c208d53883e1ee%7C84df9e7fe9f640afb435aaaaaaaa aaaa%7C1%7C0%7C636477061438955570&sdata=kqBTkxkX3HXIe% 2Faf4Gw8B5F4IPYEQVXOYzi17QTqZqY%3D&reserved=0>.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/777#issuecomment-348414555, or mute the thread https://github.com/notifications/unsubscribe-auth/AA8F_u-Nj5DoDkpDDuF8exL-NTRW4E6Qks5s759ygaJpZM4PV30L .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwit-ai%2Fwit%2Fissues%2F777%23issuecomment-348555107&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C73876479bd6c442ce11408d538e010d2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477457358263851&sdata=Ci6uf9aLClfJ252Rgm9FEFYT%2Fo25upink4bWZgzO1%2Fw%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYz9TVozcHUX6p_NgwNgI7VELc1eLXCgks5s8DXGgaJpZM4PV30L&data=02%7C01%7Cbmcclenahan%40hotmail.com%7C73876479bd6c442ce11408d538e010d2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636477457358263851&sdata=KoiEeL%2FqVpr6JtrDJ9RfT2W2V1uL6djPrsqDa2dBk9k%3D&reserved=0.

bmcclenahan avatar Dec 02 '17 02:12 bmcclenahan