It's hard coded somewhere in the components I assume.Hello,
I noticed that system time is se to 1-Aug by default. After hard reset and if there is no internet connection the log file prints 1-Aug as system date.
Where in the source code is this setting located?
Best Regards,
Nikolay Mitev
Hello,
I noticed that system time is se to 1-Aug by default. After hard reset and if there is no internet connection the log file prints 1-Aug as system date.
Where in the source code is this setting located?
Best Regards,
Nikolay Mitev
I noticed that system time is se to 1-Aug by default. After hard reset and if there is no internet connection the log file prints 1-Aug as system date.
I am aware that it is hard-coded. But since I am building my own firmware from source code I want to change the default value. This is why I am asking where it is hard-codedhard-coded so certain processes can bootstrap - so don't worry so much...
I am aware that it is hard-coded. But since I am building my own firmware from source code I want to change the default value. This is why I am asking where it is hard-coded
#ifndef RC_BUILDTIME
#define RC_BUILDTIME 1438387200 // Aug 1 00:00:00 GMT 2015
Is this the definition.. ?
release/src/router/rc/common.c
Code:#ifndef RC_BUILDTIME #define RC_BUILDTIME 1438387200 // Aug 1 00:00:00 GMT 2015
Thanks!Is this the definition.. ?
release/src/router/rc/common.c
Code:#ifndef RC_BUILDTIME #define RC_BUILDTIME 1438387200 // Aug 1 00:00:00 GMT 2015
Fully agree with you. Just I was asking for myself.I'm tempted to have BUILDTIME properly set, however I kinda like the idea of having the default time so radically different - makes it easier to spot an NTP issue than if there were just a few days of shift. Having such a fixed, round value makes it easier to spot.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!