Skip to content

Commit 32e6c9d

Browse files
committed
docs: add changelog and upgrading guide
1 parent 5857bcd commit 32e6c9d

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

user_guide_src/source/changelogs/v4.2.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Release Date: Unreleased
1212
BREAKING
1313
********
1414

15-
none.
15+
- ``Time::__toStrong()`` is now locale-independent. It returns database-compatible strings like '2022-09-07 12:00:00' in any locale.
1616

1717
Enhancements
1818
************
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#############################
2+
Upgrading from 4.2.6 to 4.2.7
3+
#############################
4+
5+
Please refer to the upgrade instructions corresponding to your installation method.
6+
7+
- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
8+
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
9+
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`
10+
11+
.. contents::
12+
:local:
13+
:depth: 2
14+
15+
Breaking Changes
16+
****************
17+
18+
- ``Time::__toStrong()`` is now locale-independent. It returns database-compatible strings like '2022-09-07 12:00:00' in any locale. Most locales are not affected by this change. But in a few locales like `ar`, `fa`, ``Time::__toStrong()`` (or ``(string) $time`` or implicit casting to a string) no longer returns a localized datetime string. if you want to get a localized datetime string, use :ref:`Time::toDateTimeString() <time-todatetimestring>` instead.
19+
20+
Project Files
21+
*************
22+
23+
A few files in the **project space** (root, app, public, writable) received cosmetic updates.
24+
You need not touch these files at all. There are some third-party CodeIgniter modules available
25+
to assist with merging changes to the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_.
26+
27+
All Changes
28+
===========
29+
30+
This is a list of all files in the **project space** that received changes;
31+
many will be simple comments or formatting that have no effect on the runtime:
32+
33+
*

user_guide_src/source/installation/upgrading.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ See also :doc:`./backward_compatibility_notes`.
1616

1717
backward_compatibility_notes
1818

19+
upgrade_427
1920
upgrade_426
2021
upgrade_425
2122
upgrade_423

user_guide_src/source/libraries/time.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ A full listing of values can be found `here <https://unicode-org.github.io/icu-d
149149

150150
.. literalinclude:: time/015.php
151151

152+
.. _time-todatetimestring:
153+
152154
toDateTimeString()
153155
==================
154156

0 commit comments

Comments
 (0)