Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Steps to Reproduce:
val date = SimpleDateFormat("YYYYMMdd", Locale.US).format(Date())
YYYY
since it's week based year, which is not what most people want.Y
as a pattern was introduced in 24.It would be great if lint could have made it an error to use
YYYY
if min SDK is below 24. A similar lint rule for other pattern introduced in newer API versions would be great too.