mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-13 00:15:16 +00:00
fix(giaxang): label the timestamp as when the prices took effect
This commit is contained in:
1 parent
629b513c91
commit
80e85012c7
2 files changed
+2
-2
No files matched your search
@@ -129,7 +129,7 @@ func formatFuelPrices(prices []fuelPrice) string {
|
||||
var sb strings.Builder
|
||||
sb.WriteString("⛽ Giá bán lẻ xăng dầu Petrolimex (đ/lít)\n")
|
||||
if updated, ok := latestUpdate(prices); ok {
|
||||
sb.WriteString("Cập nhật: " + updated.In(giaxangLocation).Format("15:04 02/01/2006") + "\n")
|
||||
sb.WriteString("Giá áp dụng từ " + updated.In(giaxangLocation).Format("15:04 02/01/2006") + "\n")
|
||||
}
|
||||
sb.WriteString("\n<pre>" + html.EscapeString(strings.TrimRight(table.String(), "\n")) + "</pre>")
|
||||
return sb.String()
|
||||
|
||||
@@ -20,7 +20,7 @@ const petrolimexFixture = `{"Objects":[
|
||||
]}`
|
||||
|
||||
const giaxangFixtureReply = "⛽ Giá bán lẻ xăng dầu Petrolimex (đ/lít)\n" +
|
||||
"Cập nhật: 14:48 24/09/2026\n" +
|
||||
"Giá áp dụng từ 14:48 24/09/2026\n" +
|
||||
"\n<pre>" +
|
||||
"Mặt hàng Vùng 1 Vùng 2\n" +
|
||||
"Xăng E10 RON 95-III 27.080 27.620\n" +
|
||||
|
||||
Reference in new issue
Block a user