View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000074 | Main CAcert Website | translations | public | 2005-10-19 05:20 | 2013-01-13 15:19 |
| Reporter | Hans Verbeek | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Fixed in Version | 2006 | ||||
| Summary | 0000074: Some less detail required (about 29.98 days == > about 30 days) | ||||
| Description | Please reduce the detail level of the days before certificate-expiration. I.s.o. "Your certificate is set to expire in approximately 29.98 days time", please use "Your certificate is set to expire in approximately 30 days time" | ||||
| Additional Information | ----- Original Message ----- From: "CAcert Support" <support@cacert.org> To: <h.verbeek@hccnet.nl> Sent: Friday, October 14, 2005 12:45 PM Subject: [CAcert.org] Your Certificate is about to expire > Hi Henri, > > You are receieving this email as you are the listed contact for: > > h.verbeek@hccnet.nl > > Your certificate is set to expire in approximately 29.98 days time, you > can renew this by going to the following URL: > > https://www.cacert.org/account.php?id=5 > > Best Regards > CAcert Support | ||||
| Tags | No tags attached. | ||||
| Reviewed by | |||||
| Test Instructions | |||||
|
|
$row['daysleft'] = ceil($row['daysleft']); |
|
|
round() would have been perfect imho, but ceil() is OK. I guess you had your reasons. |
|
|
I used ceil() because round() potentially would have made 0.48 -> 0 when it's still 12 hours... Just keeps things neat (from a human perspective)... |
|
|
But now the system writes "you have 1 day" and in reality you just have 2 hours. round() wouldn't be a lot better, but what about floor()? Or lets make it print "You have ".floor($row['daysleft'])." days and ".floor(fmod($row['daysleft'],1)*24)." hours left"; (Or leave it like it is - I don't really care :) |
|
|
or let's play "24 hours" season 6 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2005-10-19 05:20 | Hans Verbeek | New Issue | |
| 2006-08-16 19:27 | duane | Status | new => needs work |
| 2006-08-16 19:27 | duane | Assigned To | => bluec |
| 2006-08-16 19:28 | duane | Status | needs work => solved? |
| 2006-08-16 19:28 | duane | Fixed in Version | => production |
| 2006-08-16 19:28 | duane | Resolution | open => fixed |
| 2006-08-16 19:28 | duane | Note Added: 0000562 | |
| 2006-08-16 19:54 |
|
Note Added: 0000578 | |
| 2006-08-16 19:54 |
|
Assigned To | bluec => |
| 2006-08-16 19:54 |
|
Status | solved? => closed |
| 2006-08-16 20:02 | duane | Note Added: 0000580 | |
| 2006-08-16 20:18 |
|
Note Added: 0000581 | |
| 2006-08-19 09:39 | homer | Note Added: 0000613 | |
| 2013-01-13 15:19 | Werner Dworak | Fixed in Version | => 2006 |