From ce812b787c704667d35fd453d47427b0c15eb2e4 Mon Sep 17 00:00:00 2001 From: Ruben van Erk Date: Sat, 20 Aug 2022 11:49:40 +0200 Subject: [PATCH] Update local carbon formatting --- carbon.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/carbon.md b/carbon.md index 7aecaab..fca783e 100644 --- a/carbon.md +++ b/carbon.md @@ -81,10 +81,10 @@ This uses Alpine to determine in which timezone the user is browsing. ### Formatting with Local -Formatting when using with the `local` boolean attribute works a little differently. You can still use the `format` attribute but instead of using [PHP's date formatting](https://www.php.net/manual/en/datetime.format.php) you'll need to use [Moment.js' date formatting options](https://momentjs.com/docs/#/displaying/format/). +Formatting when using with the `local` attribute works a little differently. Instead of using the `format` attribute, you have to set the `local` attribute to the format that you want. And instead of using [PHP's date formatting](https://www.php.net/manual/en/datetime.format.php) you'll need to use [Moment.js' date formatting options](https://momentjs.com/docs/#/displaying/format/). ```html - + ``` This will output the following HTML: