Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Wrong Date

    Recalbox General
    wrong date
    4
    37
    12575
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • azvarel
      azvarel @Substring last edited by

      @cagiraudo delete the files before the update, update the updates.type=gitlab/82-can-t-set-timezone in recalbox.conf and change the timezone per manager, you will see that it works.

      Zodian Theme | #SNESProject

      1 Reply Last reply Reply Quote 0
      • cagiraudo
        cagiraudo last edited by

        Ok @azvarel I will try it in a phew hours. Thanks

        1 Reply Last reply Reply Quote 0
        • cagiraudo
          cagiraudo last edited by

          @azvarel @Substring Should i update again to unstable 4.1 and then to the gitlab/82-can-t-set-timezone or deleting the files will work since i am already in the test branch?

          azvarel 1 Reply Last reply Reply Quote 0
          • azvarel
            azvarel @cagiraudo last edited by

            @cagiraudo atualiza para unstable 4.1, after update, delete the files, then upgrade to gitlab... will work.

            Zodian Theme | #SNESProject

            1 Reply Last reply Reply Quote 0
            • cagiraudo
              cagiraudo last edited by

              Hi again @azvarel @Substring

              I can't update to 4.1, i change the source to unstable but i can't finish the update.
              I get this error:

              0_1494391525919_Selección_349.png

              Substring 1 Reply Last reply Reply Quote 0
              • Substring
                Substring @cagiraudo last edited by

                @cagiraudo try again until it succeeds

                Former dev - Please reply with @substring so that i am notified when you answer me
                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                1 Reply Last reply Reply Quote 0
                • cagiraudo
                  cagiraudo last edited by

                  @Substring Ok, i tryied 4 times yesteraday, i will try again tonight

                  1 Reply Last reply Reply Quote 0
                  • cagiraudo
                    cagiraudo last edited by

                    @Substring i tried 10 times yesterday and the same error.

                    Maybe i can't back to the unstable becouse i am in a branch?? Or something else, but i can't update again

                    Substring 1 Reply Last reply Reply Quote 0
                    • Substring
                      Substring @cagiraudo last edited by

                      @cagiraudo no you can switch back to unstable (and not gitlab/unstable). I manually tried to download ths file, had no problems.

                      Have you tried to download it from your webbrowser ?

                      Former dev - Please reply with @substring so that i am notified when you answer me
                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                      1 Reply Last reply Reply Quote 0
                      • cagiraudo
                        cagiraudo last edited by

                        @Substring im in work, here i could download from the webbrowser without problem, i will try in my home later. If i can download it, is there any way i copy it directly to some folder so i can make the update??

                        Substring 1 Reply Last reply Reply Quote 0
                        • Substring
                          Substring @cagiraudo last edited by

                          @cagiraudo you need i think 5 files to make an update : root and boot.tar.gz, their sha1 file each, and the root.list. no recalbox at hand now, so i can't say for sure

                          Former dev - Please reply with @substring so that i am notified when you answer me
                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                          1 Reply Last reply Reply Quote 0
                          • cagiraudo
                            cagiraudo last edited by

                            @Substring I managed to update to 4.1, then i deleted the 2 files /etc/timezone and /etc/localtime. I updated to the test branch but it still have the wrong date:

                            date
                            Tue Jan 1 11:52:28 ART 1980

                            😞

                            1 Reply Last reply Reply Quote 0
                            • azvarel
                              azvarel last edited by

                              @cagiraudo

                              Did you do it on SSH mount -o remount,rw / and then deleted the files?

                              if he did and continued it is strange.

                              So you do not waste any more time, you can do is to manually edit these files by accessing them with winscp /etc/localtime edit link and /etc/timezone editing with notepad++

                              Zodian Theme | #SNESProject

                              1 Reply Last reply Reply Quote 0
                              • cagiraudo
                                cagiraudo last edited by cagiraudo

                                @azvarel
                                I did mount -o remount,rw / before deleting those files, i confirmed they deleted before updating.

                                I don't get the second part, do you want me to manual edit the localtime and timezone files? I use linux, but i will be able to do it, but i don't get what change should i do

                                I made cat to those files and had:
                                cat timezone
                                America/Argentina/Cordoba

                                ls -lh localtime
                                lrwxrwxrwx 1 root root 14 Dec 31 22:19 localtime -> /var/localtime

                                cat localtime
                                TZi����0�{R@�ɰ��@�0�}��������@�����x
                                ���@�Z�����@��@_07��0ȁ�@�����0ΰ5�d0��l0�2@�柰�C��0�@������S0��R@��50��4@�J$o�#���$��%7�'!0'�)�@)�:�_0+�W 7�ư8��Gw �G H���I�a �������
                                ��
                                ����LMTCMTARTARSTWARTTZi�����r����������0�����{R@�����ɰ������@�����0�����}����������������@�����������������x
                                �������@�����Z���������@������������������@����
                                0����7������0����ȁ�@�����������������0����ΰ����5�����d����0����������l0�����2@�����柰�����C������0�����@������������������S0������R@������50������4@�J$o�#���$��%7%�'!0'�)�@)�:�0+�W 7�ư8��Gw�G H���I�a �������
                                ��
                                ����LMTCMTARTARSTWART
                                ART3

                                azvarel 1 Reply Last reply Reply Quote 0
                                • azvarel
                                  azvarel @cagiraudo last edited by azvarel

                                  @cagiraudo

                                  List of timezone (I do not know what city / region you are, I can not say straight)
                                  https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

                                  To see my timezone I can use (in terminal) the command:

                                  `cat /etc/timezone
                                  America/Recife

                                  The answer was accurate, I'm in America/Recife timezone.

                                  To change to the timezone from Recife to Cordoba we will check the name of this time zone doing:

                                  ls /usr/share/zoneinfo/America/Argentina

                                  Now look in the list displayed by the desired timezone. We can also search using a search keyword, for example "Cordoba", with the command:

                                  ls /usr/share/zoneinfo/America/Argentina | grep Cordoba
                                  Cordoba

                                  See that in the case I looked for the word "Cordoba" and gave very well. The response to the command indicates that the file named "Cordoba" exists.

                                  Well, now that we already know the correct file name, let's change the contents of /etc/timezone using your favorite text editor, as in:

                                  vi/etc/timezone

                                  or

                                  gedit /etc/timezone

                                  or

                                  mcedit /etc/timezone

                                  Then change from America/Recife to America/Argentina/Cordoba.

                                  Now to update using the TZ variable do:

                                  export TZ = America/Argentina/Cordoba

                                  Let's check with:

                                  date

                                  Zodian Theme | #SNESProject

                                  1 Reply Last reply Reply Quote 0
                                  • azvarel
                                    azvarel last edited by

                                    Editing localtime

                                    mv /etc/localtime /etc/localtime.old
                                    ln -s /usr/share/zoneinfo/America/Argentina/Cordoba /etc/localtime
                                    date

                                    Zodian Theme | #SNESProject

                                    1 Reply Last reply Reply Quote 0
                                    • Substring
                                      Substring last edited by

                                      you're not supposed to manually edit anything, the update should have added /etc/timezone and /etc/localtime as symlinks to /var/timezone and /var/localtime, both of the latter files are set at recalbox root

                                      Former dev - Please reply with @substring so that i am notified when you answer me
                                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                      azvarel 1 Reply Last reply Reply Quote 0
                                      • azvarel
                                        azvarel @Substring last edited by

                                        @Substring I know it is not the correct way to do it, but it was this way that I solved it before the gitlab update that you gave me and when I came back to the unstable version, again correct that way and it is working, as I described here https://github.com/recalbox/recalbox-os/issues/1264

                                        Zodian Theme | #SNESProject

                                        Substring 1 Reply Last reply Reply Quote 0
                                        • Substring
                                          Substring @azvarel last edited by

                                          @azvarel yeah, but i need a way to make it work for everyone, without putting hands in the engine

                                          Former dev - Please reply with @substring so that i am notified when you answer me
                                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                          1 Reply Last reply Reply Quote 0
                                          • cagiraudo
                                            cagiraudo last edited by

                                            @Substring @azvarel BREAKING NEWS. It is a firewall problem, at least i think so. I changed to another wifi (sharing it with my cellphone) and the date magically updated, no more 1980, it bring me back to 2017.

                                            So... i know it isn't recalbox problem, but, have you any idea what could it be? Recalbox is conected to internet, it sayed "Conected" and i can update and everything.

                                            The first time i installed recalbox i have a similar problem that it was connected but it said Not Conected because my firewall was blocking the pings https://forum.recalbox.com/topic/7448/wifi-working-but-still-not-conected, i disabled the firewall (at least i think i did) and the ping worked ant the status now says Conected. Maybe it has something to do with that.

                                            Substring 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Want to support us ?

                                            77
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com