Skip to content

Commit f12dd91

Browse files
mungitoperritojeff-allen-mongo
authored andcommitted
DOCSP-14117 Timezone datafile update
1 parent 63d93cb commit f12dd91

File tree

5 files changed

+29
-12
lines changed

5 files changed

+29
-12
lines changed

source/includes/fact-timeZoneInfo.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
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 and macOS packages sets the time
5-
zone database path to ``/usr/share/zoneinfo`` by default.
4+
The configuration file included with Linux and macOS packages sets the
5+
time zone database path to ``/usr/share/zoneinfo`` by default.
66

77
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.
8+
database <https://www.iana.org/time-zones>`_. It is updated along with
9+
MongoDB releases, but the time zone database release cycle
10+
differs from the MongoDB release cycle. The most recent release of
11+
the time zone database is available on our `download site
12+
<https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip>`_.
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. warning::
2+
3+
MongoDB uses the third party `timelib
4+
<https://github.com/derickr/timelib>`_ library to provide accurate
5+
conversions between timezones. Due to a recent update, ``timelib``
6+
could create inaccurate time zone conversions in older versions of
7+
MongoDB.
8+
9+
To explicitly link to the time zone database in versions of MongoDB
10+
prior to 4.0.25, download the `time zone database
11+
<https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip>`_.
12+
and use the :option:`timeZoneInfo <mongod --timeZoneInfo>` parameter.
13+

source/reference/configuration-options.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ Core Options
664664
*Type*: string
665665

666666
.. include:: /includes/fact-timeZoneInfo.rst
667-
667+
668+
.. include:: /includes/warning-timeZoneInfo.rst
668669

669670

670671
.. _free-monitoring-configuration-options:

source/reference/program/mongod.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,12 @@ Core Options
694694
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
695695
unzip timezonedb-latest.zip
696696
mongod --timeZoneInfo timezonedb-2017b/
697+
698+
.. include:: /includes/warning-timeZoneInfo.rst
699+
700+
.. seealso::
697701

698-
.. seealso:: :setting:`processManagement.timeZoneInfo`.
699-
702+
:setting:`processManagement.timeZoneInfo`.
700703

701704

702705
.. option:: --serviceExecutor <string>

source/reference/program/mongos.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,6 @@ Core Options
540540
consistent performance and use less resources when there are
541541
more inactive connections than database requests.
542542

543-
544543
.. option:: --timeZoneInfo <path>
545544

546545
.. include:: /includes/fact-timeZoneInfo.rst
@@ -550,8 +549,8 @@ Core Options
550549
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
551550
unzip timezonedb-latest.zip
552551
mongos --timeZoneInfo timezonedb-2017b/
553-
554552

553+
.. include:: /includes/warning-timeZoneInfo.rst
555554

556555
Sharded Cluster Options
557556
~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)