This commit is contained in:
John Smith
2023-07-02 16:23:04 -05:00
parent e457c0bcc6
commit b5906a52bc
8 changed files with 59 additions and 53 deletions
+3 -2
View File
@@ -14,8 +14,9 @@ cfg_if! {
pub fn debug_ts(ts: u64) -> String {
if is_browser() {
let mut now = Date::now();
let mut date = Date::new_0();
let now = Date::new_0();
now.set_time(Date::now());
let date = Date::new_0();
date.set_time((ts / 1000u64) as f64);
let show_year = now.get_utc_full_year() != date.get_utc_full_year();