From 0a966e2792762b9de74fa15207c39f1c73f4748b Mon Sep 17 00:00:00 2001 From: shipyy Date: Fri, 12 Aug 2022 22:33:47 +0100 Subject: [PATCH 1/3] add Timezone to timestamps --- CHANGELOG.md | 6 ++++++ scripting/SurfTimer-discord.sp | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f33fecd..7de39e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## Release Notes +## [2.5.0] + +### Added + +- Added Timezone to Timestamps. + ## [2.4.1] ### Fixed diff --git a/scripting/SurfTimer-discord.sp b/scripting/SurfTimer-discord.sp index 6ad8cb8..18fcae1 100644 --- a/scripting/SurfTimer-discord.sp +++ b/scripting/SurfTimer-discord.sp @@ -626,10 +626,14 @@ public void mapchallenge_OnChallengeEnd(int client, char szMapName[32], int styl field = new EmbedField("‎", "‎", true); embed.AddField(field); - field = new EmbedField("Started", szInitial_Timestamp, true); + char szInitital_Timestamp_withTimezone[64]; + Format(szInitital_Timestamp_withTimezone, sizeof szInitital_Timestamp_withTimezone, "(UTC) %s", szInitial_Timestamp); + field = new EmbedField("Started", szInitital_Timestamp_withTimezone, true); embed.AddField(field); - field = new EmbedField("Ends", szFinal_Timestamp, true); + char szFinal_Timestamp_withTimezone[64]; + Format(szFinal_Timestamp_withTimezone, sizeof szFinal_Timestamp_withTimezone, "(UTC) %s", szFinal_Timestamp); + field = new EmbedField("Ends", szFinal_Timestamp_withTimezone, true); embed.AddField(field); field = new EmbedField("‎", "‎", true); From 4262371f58e5e81f1195dfc7351bc1dbcf7c8948 Mon Sep 17 00:00:00 2001 From: shipyy Date: Fri, 12 Aug 2022 23:44:49 +0100 Subject: [PATCH 2/3] --bump version --- scripting/SurfTimer-discord.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/SurfTimer-discord.sp b/scripting/SurfTimer-discord.sp index 18fcae1..aa984cc 100644 --- a/scripting/SurfTimer-discord.sp +++ b/scripting/SurfTimer-discord.sp @@ -13,7 +13,7 @@ public Plugin myinfo = name = "SurfTimer-Discord", author = "Sarrus", description = "A module for SurfTimer-Official to send Discord Notifications when a new record is set.", - version = "2.4.1", + version = "2.5.0", url = "https://github.com/Sarrus1/SurfTimer-discord" }; From 422e6d2fa39b4737dcada4283569f1569c6b68ba Mon Sep 17 00:00:00 2001 From: shipyy Date: Thu, 25 Aug 2022 20:19:11 +0100 Subject: [PATCH 3/3] --fixed a segmentation core dump --CHANGELOG --- CHANGELOG.md | 4 ++++ scripting/SurfTimer-discord.sp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7de39e0..1a98832 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Added Timezone to Timestamps. +### Fixed + +- Missing ArrayList Handle Closing. + ## [2.4.1] ### Fixed diff --git a/scripting/SurfTimer-discord.sp b/scripting/SurfTimer-discord.sp index aa984cc..7b76c44 100644 --- a/scripting/SurfTimer-discord.sp +++ b/scripting/SurfTimer-discord.sp @@ -667,6 +667,8 @@ public void mapchallenge_OnChallengeEnd(int client, char szMapName[32], int styl } Format(szTop5_finalstring, sizeof szTop5_finalstring, "```fix\n%s\n```", szTop5_finalstring); + delete szChallengeTop5; + field = new EmbedField("TOP 5", szTop5_finalstring, false); embed.AddField(field);