Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions source/includes/fact-timeZoneInfo.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
The full path from which to load the time zone database. If this option
is not provided, then MongoDB will use its built-in time zone database.

The configuration file included with Linux packages sets the time zone
database path to ``/usr/share/zoneinfo`` by default.
The configuration file included with Linux and macOS packages sets the time
zone database path to ``/usr/share/zoneinfo`` by default.

The built-in time zone database is a copy of the `Olson/IANA time zone
database <https://www.iana.org/time-zones>`_. It is updated along with MongoDB
releases, but the release cycle of the time zone database differs from the
release cycle of MongoDB. A copy of the most recent release of the time zone
database can be downloaded from
https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip.
2 changes: 2 additions & 0 deletions source/includes/options-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ type: string
directive: setting
description: |
.. include:: /includes/fact-timeZoneInfo.rst

.. seealso:: :option:`--timeZoneInfo`.
---
program: conf
name: processManagement.windowsService.serviceName
Expand Down
8 changes: 8 additions & 0 deletions source/includes/options-mongod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,14 @@ directive: option
args: <path>
description: |
.. include:: /includes/fact-timeZoneInfo.rst

.. code-block:: sh

wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
unzip timezonedb-latest.zip
mongod --timeZoneInfo timezonedb-2017b/

.. seealso:: :setting:`processManagement.timeZoneInfo`.
optional: true
---
program: mongod
Expand Down
13 changes: 13 additions & 0 deletions source/includes/options-mongos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -513,4 +513,17 @@ inherit:
name: serviceExecutor
program: _shared
file: options-shared.yaml
---
program: mongos
name: timeZoneInfo
directive: option
args: <path>
description: |
.. include:: /includes/fact-timeZoneInfo.rst

.. code-block:: sh

wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
unzip timezonedb-latest.zip
mongos --timeZoneInfo timezonedb-2017b/
...
2 changes: 2 additions & 0 deletions source/reference/program/mongos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ Core Options

.. include:: /includes/option/option-mongos-serviceExecutor.rst

.. include:: /includes/option/option-mongos-timeZoneInfo.rst

Sharded Cluster Options
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
8 changes: 4 additions & 4 deletions source/release-notes/3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ MongoDB 3.6 includes the following enhancements:
deprecates/obsoletes the use of :option:`--enableMajorityReadConcern`
and :setting:`replication.enableMajorityReadConcern`.

- :program:`mongod` now offers a :option:`--timeZoneInfo` option. Use
this option to specify the path to your system time zone database.
The default configuration file included with Linux packages sets this
to ``/usr/share/zoneinfo``.
- :program:`mongod` now offers a :option:`--timeZoneInfo` option. Use this
option to specify the path to your system time zone database. The default
configuration file included with Linux and macOS packages sets this to
``/usr/share/zoneinfo``.

- The new :parameter:`honorSystemUmask` startup option for
:program:`mongod` causes new files created by MongoDB to have
Expand Down