unify current time as a complete string, not an atom (#1175)

This commit is contained in:
Mark Thom
2022-01-08 11:47:35 -07:00
parent 2e46aa33c0
commit a54e42961c

View File

@@ -3148,7 +3148,7 @@ impl Machine {
#[inline(always)]
pub(crate) fn current_time(&mut self) {
let timestamp = self.systemtime_to_timestamp(SystemTime::now());
self.machine_st.unify_atom(timestamp, self.machine_st.registers[1]);
self.machine_st.unify_complete_string(timestamp, self.machine_st.registers[1]);
}
#[inline(always)]