prepare for v0.2.18 (wasm)

This commit is contained in:
Henry Schimke
2023-01-15 15:53:09 -06:00
parent e2c11f0c0f
commit 36327480d8
5 changed files with 16 additions and 16 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
use std::{collections::HashMap, time::UNIX_EPOCH};
use std::collections::HashMap;
use crate::{
common::{DecoderRXingResult, DetectorRXingResult},
@@ -103,10 +103,7 @@ impl Reader for AztecReader {
decoderRXingResult.getNumBits(),
points.to_vec(),
BarcodeFormat::AZTEC,
std::time::SystemTime::now()
.duration_since(UNIX_EPOCH)
.expect("Time went backwards")
.as_millis(),
chrono::Utc::now().timestamp_millis() as u128,
);
let byteSegments = decoderRXingResult.getByteSegments();