Skip to content

Commit 5d6e2b4

Browse files
committed
Improve filename generation with a readable name
1 parent 1f518ad commit 5d6e2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/Observer.gaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,8 @@ global {
827827
string csvFilenameParams;
828828

829829
reflex initCSVFile when: saveObservations and date_simu_starts = nil {
830-
// TODO : when gama dev will have republish as_system_date "%Y-%M-%D-%h-%m-%s", use it instead
831-
date_simu_starts <- ""+gama.machine_time;// as_system_date "%Y-%M-%D-%h-%m-%s";
830+
date n <- date("now");
831+
date_simu_starts <- ""+ n.year + "-" + n.month + "-" + n.day + "-" + n.hour + "-" + n.minute + "-" + n.second;
832832

833833
csvFilenameParams <- setParams();
834834

0 commit comments

Comments
 (0)