File tree Expand file tree Collapse file tree 6 files changed +38
-6
lines changed Expand file tree Collapse file tree 6 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 1
1
The full path from which to load the time zone database. If this option
2
2
is not provided, then MongoDB will use its built-in time zone database.
3
3
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.
Original file line number Diff line number Diff line change @@ -339,6 +339,8 @@ type: string
339
339
directive : setting
340
340
description : |
341
341
.. include:: /includes/fact-timeZoneInfo.rst
342
+
343
+ .. seealso:: :option:`--timeZoneInfo`.
342
344
---
343
345
program : conf
344
346
name : processManagement.windowsService.serviceName
Original file line number Diff line number Diff line change @@ -2613,6 +2613,14 @@ directive: option
2613
2613
args : <path>
2614
2614
description : |
2615
2615
.. 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`.
2616
2624
optional : true
2617
2625
---
2618
2626
program : mongod
Original file line number Diff line number Diff line change @@ -513,4 +513,17 @@ inherit:
513
513
name : serviceExecutor
514
514
program : _shared
515
515
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/
516
529
...
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ Core Options
94
94
95
95
.. include:: /includes/option/option-mongos-serviceExecutor.rst
96
96
97
+ .. include:: /includes/option/option-mongos-timeZoneInfo.rst
98
+
97
99
Sharded Cluster Options
98
100
~~~~~~~~~~~~~~~~~~~~~~~
99
101
Original file line number Diff line number Diff line change @@ -455,10 +455,10 @@ MongoDB 3.6 includes the following enhancements:
455
455
deprecates/obsoletes the use of :option:`--enableMajorityReadConcern`
456
456
and :setting:`replication.enableMajorityReadConcern`.
457
457
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``.
462
462
463
463
- The new :parameter:`honorSystemUmask` startup option for
464
464
:program:`mongod` causes new files created by MongoDB to have
You can’t perform that action at this time.
0 commit comments