Skip to content

Commit 8467400

Browse files
mungitoperritojeff-allen-mongo
authored andcommitted
DOCSP-14117 Timezone datafile update
1 parent 2d58ab9 commit 8467400

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed
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.4.7, 4.2.14, and 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
@@ -739,7 +739,8 @@ Core Options
739739
*Type*: string
740740

741741
.. include:: /includes/fact-timeZoneInfo.rst
742-
742+
743+
.. include:: /includes/warning-timeZoneInfo.rst
743744

744745

745746
.. _free-monitoring-configuration-options:

source/reference/program/mongod.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,9 @@ Core Options
773773
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
774774
unzip timezonedb-latest.zip
775775
mongod --timeZoneInfo timezonedb-2017b/
776-
776+
777+
.. include:: /includes/warning-timeZoneInfo.rst
778+
777779
.. seealso::
778780

779781
:setting:`processManagement.timeZoneInfo`.

source/reference/program/mongos.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,8 @@ Core Options
632632
wget https://downloads.mongodb.org/olson_tz_db/timezonedb-latest.zip
633633
unzip timezonedb-latest.zip
634634
mongos --timeZoneInfo timezonedb-2017b/
635-
635+
636+
.. include:: /includes/warning-timeZoneInfo.rst
636637

637638

638639
.. option:: --outputConfig

0 commit comments

Comments
 (0)