Skip to content

Commit ca122fc

Browse files
kevinAlbskay-kim
authored andcommitted
DOCS-10881 add info about time zone options
1 parent 0bd7497 commit ca122fc

File tree

6 files changed

+38
-6
lines changed

6 files changed

+38
-6
lines changed

source/includes/fact-timeZoneInfo.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
The full path from which to load the time zone database. If this option
22
is not provided, then MongoDB will use its built-in time zone database.
33

4-
The configuration file included with Linux packages sets the time zone
5-
database path to ``/usr/share/zoneinfo`` by default.
4+
The configuration file included with Linux and macOS packages sets the time
5+
zone database path to ``/usr/share/zoneinfo`` by default.
6+
7+
The built-in time zone database is a copy of the `Olson/IANA time zone
8+
database <https://www.iana.org/time-zones>`_. It is updated along with MongoDB
9+
releases, but the release cycle of the time zone database differs from the
10+
release cycle of MongoDB. A copy of the most recent release of the time zone
11+
database can be downloaded from
12+
https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip.

source/includes/options-conf.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ type: string
339339
directive: setting
340340
description: |
341341
.. include:: /includes/fact-timeZoneInfo.rst
342+
343+
.. seealso:: :option:`--timeZoneInfo`.
342344
---
343345
program: conf
344346
name: processManagement.windowsService.serviceName

source/includes/options-mongod.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,6 +2613,14 @@ directive: option
26132613
args: <path>
26142614
description: |
26152615
.. include:: /includes/fact-timeZoneInfo.rst
2616+
2617+
.. code-block:: sh
2618+
2619+
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
2620+
unzip timezonedb-latest.zip
2621+
mongod --timeZoneInfo timezonedb-2017b/
2622+
2623+
.. seealso:: :setting:`processManagement.timeZoneInfo`.
26162624
optional: true
26172625
---
26182626
program: mongod

source/includes/options-mongos.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,4 +513,17 @@ inherit:
513513
name: serviceExecutor
514514
program: _shared
515515
file: options-shared.yaml
516+
---
517+
program: mongos
518+
name: timeZoneInfo
519+
directive: option
520+
args: <path>
521+
description: |
522+
.. include:: /includes/fact-timeZoneInfo.rst
523+
524+
.. code-block:: sh
525+
526+
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
527+
unzip timezonedb-latest.zip
528+
mongos --timeZoneInfo timezonedb-2017b/
516529
...

source/reference/program/mongos.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ Core Options
9494

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

97+
.. include:: /includes/option/option-mongos-timeZoneInfo.rst
98+
9799
Sharded Cluster Options
98100
~~~~~~~~~~~~~~~~~~~~~~~
99101

source/release-notes/3.6.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,10 @@ MongoDB 3.6 includes the following enhancements:
455455
deprecates/obsoletes the use of :option:`--enableMajorityReadConcern`
456456
and :setting:`replication.enableMajorityReadConcern`.
457457

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

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

0 commit comments

Comments
 (0)