@quenty/time 2.3.0 → 2.3.1-canary.497.476b7c9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/package.json +2 -2
- package/src/Shared/Time.lua +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.3.1-canary.497.476b7c9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/time@2.3.0...@quenty/time@2.3.1-canary.497.476b7c9.0) (2024-09-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Rename `:rep()` to `string.repeat` ([476b7c9](https://github.com/Quenty/NevermoreEngine/commit/476b7c94be8e1a68e8e281ccb9c8445c2b549812))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/time@2.2.0...@quenty/time@2.3.0) (2024-05-09)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/time",
|
|
3
|
-
"version": "2.3.0",
|
|
3
|
+
"version": "2.3.1-canary.497.476b7c9.0",
|
|
4
4
|
"description": "Library handles time based parsing / operations. Untested. Based off of PHP's time system. Note: This library is out of date, and does not necessarily work. I recommend using os.time()",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "476b7c94be8e1a68e8e281ccb9c8445c2b549812"
|
|
31
31
|
}
|
package/src/Shared/Time.lua
CHANGED
|
@@ -333,12 +333,12 @@ function Time.getFormattedTime(format, currentTime)
|
|
|
333
333
|
end
|
|
334
334
|
|
|
335
335
|
for _, formatType in pairs(formatsRequired) do
|
|
336
|
-
returnString = returnString:gsub(formatType,
|
|
336
|
+
returnString = returnString:gsub(formatType, string.rep(formatType, 3))
|
|
337
337
|
end
|
|
338
338
|
|
|
339
339
|
for _, formatType in pairs(formatsRequired) do
|
|
340
340
|
local replacement = ISO_FORMAT_STRINGS[formatType](currentTime)
|
|
341
|
-
returnString = returnString:gsub(
|
|
341
|
+
returnString = returnString:gsub(string.rep(formatType, 3), replacement)
|
|
342
342
|
end
|
|
343
343
|
|
|
344
344
|
return returnString
|