Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change "a/p" to "A/P" #198

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion always-on-source/AlwaysOnDisplay.mc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class AlwaysOnDisplay extends Ui.Drawable {
// TIME.
var clockTime = Sys.getClockTime();
var formattedTime = App.getApp().getFormattedTime(clockTime.hour, clockTime.min);
formattedTime[:amPm] = formattedTime[:amPm].toUpper();

// Change vertical offset every minute.
var burnInYOffset = mBurnInYOffsets[clockTime.min % mBurnInYOffsets.size()] + (clockTime.min - 30);
Expand Down
4 changes: 2 additions & 2 deletions source/CrystalApp.mc
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ class CrystalApp extends App.AppBase {
if (hour > 12) {
hour = hour - 12;
}
amPm = "p";
amPm = "P";
} else {

// #27 Ensure midnight is shown as 12, not 00.
if (hour == 0) {
hour = 12;
}
amPm = "a";
amPm = "A";
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/DataFields.mc
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ class DataFields extends Ui.Drawable {
if (tomorrow) {
now = now.add(new Time.Duration(24 * 60 * 60));
}
var d = Gregorian.info(Time.now(), Time.FORMAT_SHORT);
var d = Gregorian.info(now, Time.FORMAT_SHORT);
var rad = Math.PI / 180.0d;
var deg = 180.0d / Math.PI;

Expand Down
1 change: 0 additions & 1 deletion source/ThickThinTime.mc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class ThickThinTime extends Ui.Drawable {
function drawHoursMinutes(dc) {
var clockTime = Sys.getClockTime();
var formattedTime = App.getApp().getFormattedTime(clockTime.hour, clockTime.min);
formattedTime[:amPm] = formattedTime[:amPm].toUpper();

var hours = formattedTime[:hour];
var minutes = formattedTime[:min];
Expand Down