@@ -6,9 +6,49 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver
6
6
7
7
---
8
8
9
+ ##0.3.37[ 2024-12-03]
10
+
11
+ ###Added
12
+
13
+ - ` Time::MAX ` , equivalent to` time!(23:59:59.999999999) `
14
+ - ` [year repr:century] ` is now supported in format descriptions. When used in conjunction with
15
+ ` [year repr:last_two] ` , there is sufficient information to parse a date. Note that with the
16
+ ` large-date ` feature enabled, there is an ambiguity when parsing the two back-to-back.
17
+ - Parsing of` strftime ` -style format descriptions, located at
18
+ ` time::format_description::parse_strftime_borrowed ` and
19
+ ` time::format_description::parse_strftime_owned `
20
+ - ` time::util::refresh_tz ` and` time::util::refresh_tz_unchecked ` , which updates information
21
+ obtained via the` TZ ` environment variable. This is equivalent to the` tzset ` syscall on Unix-like
22
+ systems, with and without built-in soundness checks, respectively.
23
+
24
+ ###Changed
25
+
26
+ - Obtaining the system UTC offset on Unix-like systems should now succeed when multi-threaded.
27
+ However, if the` TZ ` environment variable is altered, the program will not be aware of this until
28
+ ` time::util::refresh_tz ` or` time::util::refresh_tz_unchecked ` is called.` refresh_tz ` has the
29
+ same soundness requirements as obtaining the system UTC offset previously did, with the
30
+ requirements still being automatically enforced.` refresh_tz_unchecked ` does not enforce these
31
+ requirements at the expense of being` unsafe ` . Most programs should not need to call either
32
+ function.
33
+
34
+ Due to this change, the` time::util::local_offset ` module has been deprecated in its entirety. The
35
+ ` get_soundness ` and` set_soundness ` functions are now no-ops.
36
+
37
+ Note that while calls_ should_ succeed, success is not guaranteed in any situation. Downstream
38
+ users should always be prepared to handle the error case.
39
+
40
+ ###Fixed
41
+
42
+ - Floating point values are truncated, not rounded, when formatting.
43
+ - RFC3339 allows arbitrary separators between the date and time components.
44
+ - Serialization of negative` Duration ` s less than one second is now correct. It previously omitted
45
+ the negative sign.
46
+ - ` From<js_sys::Date> for OffsetDateTime ` now ensures sub-millisecond values are not erroneously
47
+ returned.
48
+
9
49
##0.3.36[ 2024-04-10]
10
50
11
- #### Fixed
51
+ ###Fixed
12
52
13
53
- ` FormatItem ` can be used as part of an import path. See[ #675 ] for details.
14
54