style(shopfloor): tablet lock clock 24h -> 12h with AM/PM
Operators read phone-style clocks; 24-hour was off-norm for North American shop. Hour no longer zero-padded (1:05 PM, not 01:05 PM) to match the iPhone/Android idiom. Module version: 19.0.32.0.7 -> 19.0.32.0.8 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Fusion Plating — Shop Floor',
|
'name': 'Fusion Plating — Shop Floor',
|
||||||
'version': '19.0.32.0.7',
|
'version': '19.0.32.0.8',
|
||||||
'category': 'Manufacturing/Plating',
|
'category': 'Manufacturing/Plating',
|
||||||
'summary': 'Shop-floor tablet stations, QR scanning, bake window enforcer, '
|
'summary': 'Shop-floor tablet stations, QR scanning, bake window enforcer, '
|
||||||
'first-piece inspection gates.',
|
'first-piece inspection gates.',
|
||||||
|
|||||||
@@ -157,11 +157,14 @@ export class FpTabletLock extends Component {
|
|||||||
// === 2026-05-24 redesign helpers =====================================
|
// === 2026-05-24 redesign helpers =====================================
|
||||||
|
|
||||||
_formatTime(d) {
|
_formatTime(d) {
|
||||||
// 24-hour HH:MM with leading zeros. Per project rule 20 this MUST
|
// 12-hour H:MM AM/PM. Per project rule 20 this MUST live in JS,
|
||||||
// live in JS, not the template — padStart isn't in OWL scope.
|
// not the template — padStart isn't in OWL scope. Hour is NOT
|
||||||
const hh = String(d.getHours()).padStart(2, "0");
|
// zero-padded (1:05 PM, not 01:05 PM) to match phone-clock idiom.
|
||||||
|
let h = d.getHours();
|
||||||
|
const meridiem = h >= 12 ? "PM" : "AM";
|
||||||
|
h = h % 12 || 12; // 0 → 12
|
||||||
const mm = String(d.getMinutes()).padStart(2, "0");
|
const mm = String(d.getMinutes()).padStart(2, "0");
|
||||||
return hh + ":" + mm;
|
return h + ":" + mm + " " + meridiem;
|
||||||
}
|
}
|
||||||
|
|
||||||
_formatDate(d) {
|
_formatDate(d) {
|
||||||
|
|||||||
Reference in New Issue
Block a user