Fixed timestamp timezone for entry id's
This commit is contained in:
@@ -46,4 +46,4 @@ COPY ./ /root/sia/
|
||||
COPY --from=web-build /app/dist /root/sia/static/
|
||||
WORKDIR /root/sia
|
||||
|
||||
ENTRYPOINT ["python3", "-m", "sia"]
|
||||
CMD ["python3", "-m", "sia"]
|
||||
@@ -154,7 +154,7 @@ class WebAgent(BaseAgent):
|
||||
if llm_name not in self._llms:
|
||||
raise ValueError(f"Unknown LLM: {llm_name}")
|
||||
|
||||
timestamp = datetime.now()
|
||||
timestamp = datetime.now(datetime.timezone.utc)
|
||||
self._iteration_logger.log_iteration(timestamp, self._context, response)
|
||||
parse_result = self._parser.parse(timestamp, response)
|
||||
if isinstance(parse_result, Command):
|
||||
|
||||
5811
tools/itb/out.txt
5811
tools/itb/out.txt
File diff suppressed because one or more lines are too long
@@ -74,13 +74,14 @@ export const MemoryEditor = ({
|
||||
|
||||
const generateId = () => {
|
||||
const now = new Date();
|
||||
return now.getFullYear() +
|
||||
String(now.getMonth() + 1).padStart(2, '0') +
|
||||
String(now.getDate()).padStart(2, '0') + '_' +
|
||||
String(now.getHours()).padStart(2, '0') +
|
||||
String(now.getMinutes()).padStart(2, '0') +
|
||||
String(now.getSeconds()).padStart(2, '0') + '_' +
|
||||
String(now.getMilliseconds()).padStart(3, '0');
|
||||
const utc = new Date(now.getTime() + now.getTimezoneOffset() * 60000);
|
||||
return utc.getFullYear() +
|
||||
String(utc.getMonth() + 1).padStart(2, '0') +
|
||||
String(utc.getDate()).padStart(2, '0') + '_' +
|
||||
String(utc.getHours()).padStart(2, '0') +
|
||||
String(utc.getMinutes()).padStart(2, '0') +
|
||||
String(utc.getSeconds()).padStart(2, '0') + '_' +
|
||||
String(utc.getMilliseconds()).padStart(3, '0');
|
||||
};
|
||||
|
||||
const getInitialEntry = (type) => {
|
||||
|
||||
Reference in New Issue
Block a user