Skip to content

Commit 9510fd6

Browse files
mungitoperritojeff-allen-mongo
authored andcommitted
DOCSP-14117 Timezone datafile update
1 parent 6493139 commit 9510fd6

File tree

5 files changed

+29
-10
lines changed

5 files changed

+29
-10
lines changed

source/includes/fact-timeZoneInfo.rst

+8-7
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+
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 5.0, 4.4.7, 4.2.14, and 4.0.25, download the `time zone
11+
database
12+
<https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip>`_.
13+
and use the :option:`timeZoneInfo <mongod --timeZoneInfo>` parameter.
14+

source/reference/configuration-options.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,8 @@ Core Options
734734
*Type*: string
735735

736736
.. include:: /includes/fact-timeZoneInfo.rst
737-
737+
738+
.. include:: /includes/warning-timeZoneInfo.rst
738739

739740

740741
.. _free-monitoring-configuration-options:

source/reference/program/mongod.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,9 @@ Core Options
807807
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
808808
unzip timezonedb-latest.zip
809809
mongod --timeZoneInfo timezonedb-2017b/
810-
810+
811+
.. include:: /includes/warning-timeZoneInfo.rst
812+
811813
.. seealso::
812814

813815
:setting:`processManagement.timeZoneInfo`.

source/reference/program/mongos.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@ Core Options
607607
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
608608
unzip timezonedb-latest.zip
609609
mongos --timeZoneInfo timezonedb-2017b/
610-
610+
611+
.. include:: /includes/warning-timeZoneInfo.rst
611612

612613

613614
.. option:: --outputConfig

0 commit comments

Comments
 (0)