Skip to content

Commit

Permalink
fix: display name
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal2376 committed Apr 2, 2024
1 parent 250a58e commit 3c8ab77
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ import com.vishal2376.snaptick.util.Constants
import com.vishal2376.snaptick.util.DummyTasks
import java.time.DayOfWeek
import java.time.LocalDate
import java.time.format.TextStyle
import java.time.temporal.WeekFields
import java.util.Locale

@OptIn(
ExperimentalMaterial3Api::class,
Expand Down Expand Up @@ -95,7 +97,10 @@ fun ThisWeekTaskScreen(
tint = MaterialTheme.colorScheme.onPrimary
)
Text(
text = LocalDate.now().dayOfWeek.name.take(3),
text = LocalDate.now().dayOfWeek.getDisplayName(
TextStyle.SHORT,
Locale.getDefault()
),
style = infoTextStyle,
color = MaterialTheme.colorScheme.onPrimary
)
Expand Down

0 comments on commit 3c8ab77

Please sign in to comment.