Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-13848

cmd - Problems while interpreting the command: date

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Untriaged
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None

      Description

      cmd - Problems while interpreting the command: date

      The date is displayed with the name of the days of the week.
      In Windows XP there is no such.
      These names make it difficult to use the "date" command in the future.
      It will be better to remove the names of the days of the week, leave only the numbers.

       

      date time.bat:

      @echo off
      >>log.txt echo %date%. %time%
      >>log.txt echo.
      @cls

       

      log.txt:

       

      In XP ru:
      28.09.2017. 19:11:15,09
      In the Russian version:
      Џ­ 18.09.2017. 19:14:05,80
      ‚в 19.09.2017. 19:14:10,54
      20.09.2017. 19:14:14,62
      —в 21.09.2017. 19:14:18,91
      Џв 22.09.2017. 19:14:22,25
      23.09.2017. 19:14:25,52
      ‚б 24.09.2017. 19:14:29,87
      In the English version:
      Sun 09/17/2017. 19:19:38.19
      Mon 09/18/2017. 19:19:43.56
      Tue 09/19/2017. 19:19:47.54
      Wed 09/20/2017. 19:19:52.15
      Thu 09/21/2017. 19:19:56.30
      Fri 09/22/2017. 19:20:00.68
      Sat 09/23/2017. 19:20:05.21

       

       

      For example, it turns out badly when creating names of files containing the date and time in the title:

      DATE-TIME-.txt.bat:

      @echo off
      cd /d %0\..
      set now=%DATE: =0% %TIME: =0%
      for /f "tokens=1-7 delims=:,./- " %%a in ("%now%") do set DT=%%c.%%b.%%a %%d.%%e.%%f.%%g
      >>"%DT%.txt" echo.>>"%DT%.txt" echo %DT%
      >>"%DT%.txt" echo %DATE% %TIME%
      @cls

      In ReactOS en. it turns out like this:

      2017.28.Thu009 20.38.01.16.txt -

      2017.28.Thu009 20.38.01.16
      Thu 09/28/2017 20:38:01.19

       

      In ReactOS ru. it turns out like this:

      2017.09.Чт028 20.43.10.27.txt -

      2017.09.—в028 20.43.10.27
      —в 28.09.2017 20:43:10,33

       

      In Windows XP ru.:

      2017.09.28 20.40.04.95.txt -

      2017.09.28 20.40.04.95
      28.09.2017 20:40:04,96

       

       

        Attachments

        1. date-time-ros-english.png
          date-time-ros-english.png
          26 kB
        2. date-time-ros-russian.png
          date-time-ros-russian.png
          32 kB
        3. date-time-win10jp.png
          date-time-win10jp.png
          7 kB
        4. date-time-win2k3english.png
          date-time-win2k3english.png
          26 kB
        5. date-time-winxpjp.png
          date-time-winxpjp.png
          36 kB
        6. debug_r75981.log
          55 kB
        7. log.txt
          0.5 kB
        8. ReactOS--r75981.png
          ReactOS--r75981.png
          91 kB
        9. ReactOS---r75981.png
          ReactOS---r75981.png
          76 kB
        10. Regional_Options_Date.png
          Regional_Options_Date.png
          30 kB
        11. Test-CMD_date-time.7z
          0.5 kB
        12. Win2003Server_Date.PNG
          Win2003Server_Date.PNG
          8 kB
        13. Windows XP rus..png
          Windows XP rus..png
          376 kB
        14. WinXP_Date.PNG
          WinXP_Date.PNG
          11 kB

          Issue Links

            Activity

              People

              • Assignee:
                bug zilla Bug Zilla
                Reporter:
                Start Start
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: