Please refer my previous articles to create an app for Outlook Web App

Visual Studio 2013: http://www.c-sharpcorner.com/UploadFile/anavijai/office-365-how-to-create-an-app-for-outlook-2013-using-visu/

Napa Tool: http://www.c-sharpcorner.com/UploadFile/anavijai/office-365-how-to-create-an-app-for-outlook-web-app-using-n/

In this blog you will see how to get the user’s default time zone in Outlook Web App.

AppRead folder: Home.html

  1. <body>
  2. <!-- Page content -->
  3. <div id="content-main">
  4. <div class="padding">
  5. <p><strong>Gets the user's default time zone.</strong></p>
  6. <table id="details">
  7. <tr>
  8. <th>Default Time Zone:</th>
  9. <td id="timeZone"></td>
  10. </tr>
  11. </table>
  12. </div>
  13. </div>
  14. </body>

Home.js

  1. /// <reference path="../App.js" />
  2. /*global app*/
  3. (function () {
  4. 'use strict';
  5. // The Office initialize function must be run each time a new page is loaded
  6. Office.initialize = function (reason) {
  7. $(document).ready(function () {
  8. app.initialize();
  9. displayItemDetails();
  10. });
  11. };
  12. // Displays the "Subject" and "From" fields, based on the current mail item
  13. function displayItemDetails() {
  14. var userProfile = Office.context.mailbox.userProfile;
  15. $('#timeZone').text(userProfile.timeZone);
  16. }
  17. })();

Output:

Reference:

https://msdn.microsoft.com/en-us/library/fp161109.aspx