Suggestion: Date formats

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

Post Reply
BikeMike
Posts: 108
Joined: Sat Jun 13, 2009 8:02 am
Location: Adelaide, South Australia

Suggestion: Date formats

Post by BikeMike »

Dates are shown in the Gargoyle web interface in "American" mm/dd/yy or mm/dd format. I would like to be able to select "Australian" dd/mm/yy or dd/mm, or even the more generic ISO yyyy-mm-dd as alternatives.

Setting could be on the Time page as a dropdown box.

Gabnoj
Posts: 10
Joined: Thu Aug 20, 2009 2:41 am

Re: Suggestion: Date formats

Post by Gabnoj »

+1 for that.. :)

spryte
Posts: 8
Joined: Tue Sep 15, 2009 2:02 am

Re: Suggestion: Date formats

Post by spryte »

Hi,

I have amended the codes as per your suggestion. You'll find the diff files and src files as attached. The src files can just be renamed and copied into the correct directories in the router. The diff files is with reference to version 1.0.12 of the router image.

You'll notice an additional login.sh. I added a small snippet of codes that shows the time there. It's useful for my tenants to view the time so that they'll know that the router's clock is in sync before they start heavy downloading during off-peak period.

I have encountered the problem where the router's clock goes out of sync whenever I do a cold reboot (power off and on) of both the ADSL modem and router. It never syncs back even after I set the ntpclient to update every 1 hour.

Good luck.
Attachments
src.zip
(13.07 KiB) Downloaded 422 times
patch.zip
(4.32 KiB) Downloaded 432 times
Last edited by spryte on Sun Oct 04, 2009 10:54 pm, edited 1 time in total.

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Suggestion: Date formats

Post by Eric »

Committed (with some minor modifications) to the SVN in r582. Thanks!

This feature will be included in the next release.

Post Reply