|
@@ -224,9 +224,9 @@ namespace ClankerSaddle {
|
|
|
creator = task.creator,
|
|
creator = task.creator,
|
|
|
is_goal_run = task.kind == TASK_KIND_GOAL_RUN,
|
|
is_goal_run = task.kind == TASK_KIND_GOAL_RUN,
|
|
|
enqueue_after_task_id = task.enqueue_after_task_id,
|
|
enqueue_after_task_id = task.enqueue_after_task_id,
|
|
|
- created_display = format_time(task.created_at),
|
|
|
|
|
- started_display = format_time(task.started_at),
|
|
|
|
|
- completed_display = format_time(task.completed_at)
|
|
|
|
|
|
|
+ created_display = format_stamp(task.created_at),
|
|
|
|
|
+ started_display = format_stamp(task.started_at),
|
|
|
|
|
+ completed_display = format_stamp(task.completed_at)
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
var display = TaskService.display_of_detail(((!)detail));
|
|
var display = TaskService.display_of_detail(((!)detail));
|
|
@@ -287,7 +287,7 @@ namespace ClankerSaddle {
|
|
|
author = comment.author,
|
|
author = comment.author,
|
|
|
body = comment.body,
|
|
body = comment.body,
|
|
|
quote = comment.quote ?? "",
|
|
quote = comment.quote ?? "",
|
|
|
- when_display = format_time(comment.created_at),
|
|
|
|
|
|
|
+ when_display = format_stamp(comment.created_at),
|
|
|
from_agent = comment.author == "agent",
|
|
from_agent = comment.author == "agent",
|
|
|
is_system = comment.author == COMMENT_AUTHOR_SYSTEM
|
|
is_system = comment.author == COMMENT_AUTHOR_SYSTEM
|
|
|
});
|
|
});
|
|
@@ -298,7 +298,7 @@ namespace ClankerSaddle {
|
|
|
progress.add(new ProgressView() {
|
|
progress.add(new ProgressView() {
|
|
|
id = row.id,
|
|
id = row.id,
|
|
|
summary = row.summary,
|
|
summary = row.summary,
|
|
|
- when_display = format_time(row.created_at)
|
|
|
|
|
|
|
+ when_display = format_stamp(row.created_at)
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -313,7 +313,7 @@ namespace ClankerSaddle {
|
|
|
foreach (var row in yeehaw_feed.latest) {
|
|
foreach (var row in yeehaw_feed.latest) {
|
|
|
yeehaws.add(new YeehawView() {
|
|
yeehaws.add(new YeehawView() {
|
|
|
message = row.message,
|
|
message = row.message,
|
|
|
- when_display = format_time(row.at)
|
|
|
|
|
|
|
+ when_display = format_stamp(row.at)
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -335,8 +335,8 @@ namespace ClankerSaddle {
|
|
|
answered = block.answer != null,
|
|
answered = block.answer != null,
|
|
|
answered_by = block.answered_by ?? "",
|
|
answered_by = block.answered_by ?? "",
|
|
|
is_plan_review = block.block_type == BLOCK_PLAN,
|
|
is_plan_review = block.block_type == BLOCK_PLAN,
|
|
|
- created_display = format_time(block.created_at),
|
|
|
|
|
- answered_display = format_time(block.answered_at),
|
|
|
|
|
|
|
+ created_display = format_stamp(block.created_at),
|
|
|
|
|
+ answered_display = format_stamp(block.answered_at),
|
|
|
answer_action = actions.author_private<AnswerBlockAction, BlockAnswerPrivate>(block_private)
|
|
answer_action = actions.author_private<AnswerBlockAction, BlockAnswerPrivate>(block_private)
|
|
|
};
|
|
};
|
|
|
if (!view.answered && view.block_type == BLOCK_REVIEW) {
|
|
if (!view.answered && view.block_type == BLOCK_REVIEW) {
|
|
@@ -458,8 +458,8 @@ namespace ClankerSaddle {
|
|
|
sessions.add(new SessionView() {
|
|
sessions.add(new SessionView() {
|
|
|
id = session.id,
|
|
id = session.id,
|
|
|
saddle_name = saddle != null ? ((!)saddle).name : @"saddle #$(session.saddle_id)",
|
|
saddle_name = saddle != null ? ((!)saddle).name : @"saddle #$(session.saddle_id)",
|
|
|
- started_display = format_time(session.started_at),
|
|
|
|
|
- ended_display = format_time(session.ended_at),
|
|
|
|
|
|
|
+ started_display = format_stamp(session.started_at),
|
|
|
|
|
+ ended_display = format_stamp(session.ended_at),
|
|
|
outcome = session.outcome ?? "",
|
|
outcome = session.outcome ?? "",
|
|
|
open = session.ended_at == null
|
|
open = session.ended_at == null
|
|
|
});
|
|
});
|
|
@@ -520,9 +520,6 @@ namespace ClankerSaddle {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private static string format_time(DateTime? time) {
|
|
|
|
|
- return time != null ? ((!)time).format("%Y-%m-%d %H:%M") : "";
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|