better riot.im support
This commit is contained in:
parent
fdeee7fdb5
commit
8557278b90
5 changed files with 110 additions and 40 deletions
|
@ -8,8 +8,9 @@ pub fn millis_since_unix_epoch() -> js_int::UInt {
|
|||
(SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_millis() as u32)
|
||||
.into()
|
||||
.as_millis() as u64)
|
||||
.try_into()
|
||||
.expect("time millis are <= MAX_SAFE_UINT")
|
||||
}
|
||||
|
||||
pub fn increment(old: Option<&[u8]>) -> Option<Vec<u8>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue