chatengine-io / react-chat-engine

React component for a cheap and easy chat API
138 stars 35 forks source link

Concern on Timezone offset prop #93

Open NeilMatthewLua opened 2 years ago

NeilMatthewLua commented 2 years ago

Good day, I would just like to confirm if the timezone offset prop is working.

As per the documentation, I would just have to pass in a prop "offset={}", then the timezone would adjust accordingly. However, despite me doing such, I can't seem to have my timezone updated. (I need GMT + 8).

<ChatEngine
    height="calc(100vh - 66px)"
    projectID={process.env.REACT_APP_CHAT_ENGINE_ID}
    userName={user.displayName.replace(/\s/g,'')}
    userSecret={user.uid}
    offset={8}
/>

Also, I have set the username creations to their names instead because I'd like them to find users via usernames instead of email (usernames are all unique). Is there a better way to go about this?

Looking forward to hearing from you, grateful for this chat engine!

alamorre commented 2 years ago

Hey hey! Which timezone/area are you in specifically? I'll try it out myself

NeilMatthewLua commented 2 years ago

@alamorre GMT +8, good sir.