Skip to content

Commit

Permalink
adds weekdays to list headers
Browse files Browse the repository at this point in the history
  • Loading branch information
RingoRohe committed May 25, 2020
1 parent 6c8af1e commit c458c52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const MeasurementslistWidget = (props) => {

const formatDate = (date) => {
return date.toLocaleDateString([], {
weekday: 'short',
day: "2-digit",
month: "2-digit",
year: "numeric",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const DiaperslistWidget = (props) => {

const formatDate = (date) => {
return date.toLocaleDateString([], {
weekday: 'short',
day: "2-digit",
month: "2-digit",
year: "numeric",
Expand Down
1 change: 1 addition & 0 deletions src/components/naps/widgets/lastnaps/NapListWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const LastNapsWidget = (props) => {

const formatDate = (date) => {
return date.toLocaleDateString([], {
weekday: 'short',
day: "2-digit",
month: "2-digit",
year: "numeric",
Expand Down

0 comments on commit c458c52

Please sign in to comment.