mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.7.3.1
This commit is contained in:
@@ -27,7 +27,7 @@ public class Pft_func_date_int extends Pf_func_base {
|
||||
case Date_tid_lcl: date = DateAdp_.Now(); break;
|
||||
case Date_tid_utc: date = DateAdp_.Now().XtoUtc(); break;
|
||||
case Date_tid_rev: date = ctx.Cur_page().Revision_data().Modified_on(); break;
|
||||
default: throw Exc_.new_unhandled(date_tid);
|
||||
default: throw Err_.new_unhandled(date_tid);
|
||||
}
|
||||
switch (id) {
|
||||
case Xol_kwd_grp_.Id_utc_year:
|
||||
@@ -81,7 +81,7 @@ public class Pft_func_date_int extends Pf_func_base {
|
||||
.Add_int_fixed(date.Minute(), 2)
|
||||
.Add_int_fixed(date.Second(), 2);
|
||||
break;
|
||||
default: throw Exc_.new_unhandled(id);
|
||||
default: throw Err_.new_unhandled(id);
|
||||
}
|
||||
}
|
||||
public static final int Date_tid_utc = 0, Date_tid_lcl = 1, Date_tid_rev = 2;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class Pft_func_date_name extends Pf_func_base {
|
||||
case Pft_func_date_int.Date_tid_lcl: date = DateAdp_.Now(); break;
|
||||
case Pft_func_date_int.Date_tid_utc: date = DateAdp_.Now().XtoUtc(); break;
|
||||
case Pft_func_date_int.Date_tid_rev: date = ctx.Cur_page().Revision_data().Modified_on(); break;
|
||||
default: throw Exc_.new_unhandled(date_tid);
|
||||
default: throw Err_.new_unhandled(date_tid);
|
||||
}
|
||||
byte[] val = ctx.Wiki().Msg_mgr().Val_by_id(base_idx + date.Segment(seg_idx));
|
||||
bfr.Add(val);
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Pft_func_time extends Pf_func_base {
|
||||
return rv;
|
||||
}
|
||||
catch (Exception exc) {
|
||||
Exc_.Noop(exc);
|
||||
Err_.Noop(exc);
|
||||
error_bfr.Add_str_a7("Invalid time");
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ class Pxd_itm_unit extends Pxd_itm_base implements Pxd_itm_prototype {
|
||||
case DateAdp_.SegIdx_day : cur = cur.Add_day (val); break;
|
||||
case DateAdp_.SegIdx_month : cur = cur.Add_month (val); break;
|
||||
case DateAdp_.SegIdx_year : cur = cur.Add_year (val); break;
|
||||
default: throw Exc_.new_unhandled(this.Seg_idx());
|
||||
default: throw Err_.new_unhandled(this.Seg_idx());
|
||||
}
|
||||
bldr.Date_(cur);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user