Network Policy 1 day = 12 hours ?

Asked by Yordan Almenares

Hello

I am configuring Network Policy in AuthPuppy. But when I setup the Expiration to 1 day I get 12 hours, not 24 hours. Is this correct, 1 day is equivalent to 12 hours for the application?

Regards

Question information

Language:
English Edit question
Status:
Solved
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Solved by:
Yordan Almenares
Solved:
Last query:
Last reply:
Revision history for this message
gbastien (gbastien02) said :
#1

Hi,

On this planet, 1 day is 24 hours and AuthPuppy is no exception! So if 1 day is 12 hours, it is a bug.

I cannot reproduce the problem on my server. Could it be a problem with the time format? My time is written in 0-24 hours. Is yours 0-12 with AM/PM?

Revision history for this message
Yordan Almenares (almenares) said :
#2

Hello

Do you mean the time configured in the server? The time configured in the server is in 24 hours format.

Regards

Revision history for this message
Yordan Almenares (almenares) said :
#3

I think it is a bug. I fixed already in my system. In the function displayDuration is defined:

 $format = "h\h ". $format;

when should be:

 $format = "H\h ". $format;

The option h is for 12 hours format, and the option H is for 24 hours.

Regards