-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support time zone configuration #167
Conversation
Codecov Report
@@ Coverage Diff @@
## main #167 +/- ##
==========================================
+ Coverage 92.22% 92.27% +0.04%
==========================================
Files 46 46
Lines 3344 3364 +20
==========================================
+ Hits 3084 3104 +20
Misses 191 191
Partials 69 69
Continue to review full report at Codecov.
|
@@ -128,11 +128,11 @@ func ToHTML(r probe.Result) string { | |||
<td class="data">%s</td> | |||
</tr> | |||
</table> | |||
` + HTMLFooter(r.StartTime.Format(r.TimeFormat)) | |||
` + HTMLFooter(FormatTime(r.StartTime)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A quick question: Who should take the responsibility for rendering the the time on the web page? the server or the client? It has a little different from other notifiers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently, the web server renders the whole web page including the time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
close #166
support the timezone configuration
Code changes:
timeformat
from probe result to global package.TimeFormat()
function