@temboplus/frontend-core 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -126,6 +126,7 @@ import {
|
|
|
126
126
|
TIMEZONE_OPTIONS,
|
|
127
127
|
formatDate,
|
|
128
128
|
formatDateTime,
|
|
129
|
+
formatUtcIsoDateTime,
|
|
129
130
|
isEatTimezone,
|
|
130
131
|
isValidTimezone,
|
|
131
132
|
shiftPlainDate,
|
|
@@ -138,6 +139,7 @@ import {
|
|
|
138
139
|
|
|
139
140
|
// Imperative formatters (React hook counterparts live in frontend-react-core)
|
|
140
141
|
formatDateTime(new Date(), "Africa/Nairobi"); // "25 MAY 2026, 02:30 PM"
|
|
142
|
+
formatUtcIsoDateTime(new Date("2026-05-25T11:30:45.987Z")); // "2026-05-25T11:30:45Z"
|
|
141
143
|
|
|
142
144
|
// Plain-date math (no JS-runtime timezone bleed)
|
|
143
145
|
shiftPlainDate("2026-05-15", 1); // "2026-05-16"
|