Remove potentially confusing TZ from insight generator
This commit is contained in:
@@ -442,7 +442,7 @@ impl InsightGenerator {
|
|||||||
let date = DateTime::from_timestamp(e.start_time, 0)
|
let date = DateTime::from_timestamp(e.start_time, 0)
|
||||||
.map(|dt| {
|
.map(|dt| {
|
||||||
dt.with_timezone(&Local)
|
dt.with_timezone(&Local)
|
||||||
.format("%Y-%m-%d %H:%M %:z")
|
.format("%Y-%m-%d %H:%M")
|
||||||
.to_string()
|
.to_string()
|
||||||
})
|
})
|
||||||
.unwrap_or_else(|| "unknown".to_string());
|
.unwrap_or_else(|| "unknown".to_string());
|
||||||
@@ -1360,7 +1360,7 @@ Return ONLY the summary, nothing else."#,
|
|||||||
let timestamp = chrono::DateTime::from_timestamp(m.timestamp, 0)
|
let timestamp = chrono::DateTime::from_timestamp(m.timestamp, 0)
|
||||||
.map(|dt| {
|
.map(|dt| {
|
||||||
dt.with_timezone(&Local)
|
dt.with_timezone(&Local)
|
||||||
.format("%Y-%m-%d %H:%M %:z")
|
.format("%Y-%m-%d %H:%M")
|
||||||
.to_string()
|
.to_string()
|
||||||
})
|
})
|
||||||
.unwrap_or_else(|| "unknown time".to_string());
|
.unwrap_or_else(|| "unknown time".to_string());
|
||||||
@@ -1533,7 +1533,7 @@ Return ONLY the summary, nothing else."#,
|
|||||||
let ts = DateTime::from_timestamp(m.timestamp, 0)
|
let ts = DateTime::from_timestamp(m.timestamp, 0)
|
||||||
.map(|dt| {
|
.map(|dt| {
|
||||||
dt.with_timezone(&Local)
|
dt.with_timezone(&Local)
|
||||||
.format("%Y-%m-%d %H:%M %:z")
|
.format("%Y-%m-%d %H:%M")
|
||||||
.to_string()
|
.to_string()
|
||||||
})
|
})
|
||||||
.unwrap_or_else(|| "unknown".to_string());
|
.unwrap_or_else(|| "unknown".to_string());
|
||||||
@@ -1604,7 +1604,7 @@ Return ONLY the summary, nothing else."#,
|
|||||||
let dt = DateTime::from_timestamp(e.start_time, 0)
|
let dt = DateTime::from_timestamp(e.start_time, 0)
|
||||||
.map(|dt| {
|
.map(|dt| {
|
||||||
dt.with_timezone(&Local)
|
dt.with_timezone(&Local)
|
||||||
.format("%Y-%m-%d %H:%M %:z")
|
.format("%Y-%m-%d %H:%M")
|
||||||
.to_string()
|
.to_string()
|
||||||
})
|
})
|
||||||
.unwrap_or_else(|| "unknown".to_string());
|
.unwrap_or_else(|| "unknown".to_string());
|
||||||
@@ -1680,7 +1680,7 @@ Return ONLY the summary, nothing else."#,
|
|||||||
let dt = DateTime::from_timestamp(loc.timestamp, 0)
|
let dt = DateTime::from_timestamp(loc.timestamp, 0)
|
||||||
.map(|dt| {
|
.map(|dt| {
|
||||||
dt.with_timezone(&Local)
|
dt.with_timezone(&Local)
|
||||||
.format("%Y-%m-%d %H:%M %:z")
|
.format("%Y-%m-%d %H:%M")
|
||||||
.to_string()
|
.to_string()
|
||||||
})
|
})
|
||||||
.unwrap_or_else(|| "unknown".to_string());
|
.unwrap_or_else(|| "unknown".to_string());
|
||||||
|
|||||||
Reference in New Issue
Block a user