T16 review fixes: an unknown system zone stops instead of reading as UTC, the view window refits when data shrinks, the volume profile counts narrow and flat candles whole, Fibonacci labels stay in their pane, the DOM ladder shows its tick's decimals, the tape flashes on each new trade, typed numbers reach their owner before a press, and a smaller loss than expected reads as a beat
This commit is contained in:
14 files changed
+230
-65
No files matched your search
@@ -11,9 +11,10 @@ mod zone;
|
||||
use jiff::{
|
||||
Timestamp, Zoned,
|
||||
civil::{Date, Time},
|
||||
tz::TimeZone,
|
||||
};
|
||||
|
||||
use crate::typography::format::system_zone;
|
||||
|
||||
pub use calendar::Calendar;
|
||||
pub use cron::CronEditor;
|
||||
pub use period::{MonthPicker, QuarterPicker, YearPicker};
|
||||
@@ -26,10 +27,7 @@ pub use zone::TimezoneSelect;
|
||||
|
||||
/// The system's clock in its own zone. An unknown zone stops here, not in UTC.
|
||||
pub(crate) fn zoned_now() -> Zoned {
|
||||
let zone = TimeZone::try_system().unwrap_or_else(|error| {
|
||||
panic!("the system time zone is unknown; pass a fixed date: {error}")
|
||||
});
|
||||
Timestamp::now().to_zoned(zone)
|
||||
Timestamp::now().to_zoned(system_zone("date pickers"))
|
||||
}
|
||||
|
||||
/// A day as "Sep 25, 2026".
|
||||
|
||||
Reference in new issue
Block a user