13,400
edits
(Created page with "local p = {} -- There's probably a way to use strptime or some other more sophisticated way, but you're not supposed to be using a non-timestamp as input anyway. local funct...") |
No edit summary |
||
Line 13: | Line 13: | ||
local function addUtcToStringIfItDoesNotEndWithUtc(s) | local function addUtcToStringIfItDoesNotEndWithUtc(s) | ||
if s == "" or endswith(s, "~~~~") then return s end | if s == "" or endswith(s, "~~~~") then return s end | ||
if not endswith(s, "( | if not endswith(s, "(IST)") then | ||
return s .. " ( | return s .. " (IST)" | ||
end | end | ||
return s | return s |
edits