Giter Site home page Giter Site logo

Comments (3)

gautamsi avatar gautamsi commented on June 2, 2024

can you check this in outlook web instead of outlook client?
also check what is the value you get for ews.TimeZoneInfo.Local on your server, this auto timezone detection is not very perfect

from ews-javascript-api.

tareqassi avatar tareqassi commented on June 2, 2024

@gautamsi thanks for the quick reply
Unfortunately, the issue is on a production server of a client where they have on-premise exchange server. I don't have access to outlook web there.

our nodejs app is on aws , I will add some logs on production and see what value for ews.TimeZoneInfo.Local and re-send it here .
just to make sure that I understand , setting event.StartTimeZone = ews.TimeZoneInfo.Local will get the timezone of nodejs server (aws in our case ) and set it to be the timezone of the appointment ? if yes , then its not what I am looking for .

my goal to show the appointment on the same timezone as the user's timezone
for example if I am sending "2024-06-04T10:30:00.000Z" as start date , it should appear for a user in Berlin as 11:30 (UTC+1)

On the testing environment, we are only provided with outlook web that is also hosted by the client and I don't see this issue on outlook web
Screenshot 2024-03-22 at 3 29 44 PM

from ews-javascript-api.

gautamsi avatar gautamsi commented on June 2, 2024

you would want to find user timezone and use that timezone instead. if you use ews.TimeZoneInfo.Local it uses moment.tz.guess() which is not something in my control. You have to either set the timezone in code or get it for each user and construct the timezone based on that.

from ews-javascript-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.