[uae] Date/time conversion sometimes right, sometimes wrong

  • From: Martin Steigerwald <Martin@xxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Sun, 31 Oct 2004 00:31:31 +0200

Hello,

Some time ago, I told that I still have date/time conversion problems 
between Amiga native filesystem and the UAE virtual filesystem which 
stores files on a filesystem of the host operating system for UAE. 

Now I tested with E-UAE 0.8.27 RC 2 again and first it looked okay, but 
then I found oddities. 

This is the timezone, I am (not long anymore, we are switching from summer 
time to winter time this night which gives me an additional hour):
martin@deepdance:~ -> date
Sa Okt 30 23:58:25 CEST 2004

1) Compare this Amiga directory listing from a directory on a CD-R 
created via MakeCD:

Adressen                           Dir ----rwed 21-Mär-04  15:30:23
Adressen.info                     6065 ----rw-d 21-Mär-04  15:30:40
Fotos                              Dir ----rwed 17-Jan-04  17:39:19
Fotos.info                        6065 ----rw-d 26-Dez-03  16:55:51
GmG                                Dir ----rwed 25-Jul-02  19:29:56
Ideen.txt                         1091 ----rw-d 04-Dez-01  22:34:58
Ideen.txt.info                    2747 ----rw-d 26-Dez-03  16:55:51
Urlaub       Dir ----rwed 24-Aug-02  22:02:09
Apache.log                   1743 ----rw-d 24-Mai-01  14:05:15
Apache.log.info              2747 ----rw-d 26-Dez-03  16:55:51
Liebe                              Dir ----rwed 12-Mai-02  23:46:18
Liebe.info                        6065 ----rw-d 26-Dez-03  16:55:51
Mailinglisten                      Dir ----rwed 16-Sep-02  17:18:55
Mailinglisten.info                6065 ----rw-d 26-Dez-03  16:55:51
Grusskarte.zip             730984 ----rwed 12-Mär-03  20:25:34
RCS                                Dir ----rwed 04-Dez-01  22:34:58
RCS.info                          6065 ----rw-d 26-Dez-03  16:55:51
Team                               Dir ----rwed 06-Mär-02  20:42:59
Team.info                         6131 ----rw-d 26-Dez-03  16:55:51
Team.txt                           187 ----rw-d 22-Mai-01  22:51:15
Team.txt.info                     2747 ----rw-d 26-Dez-03  16:55:51
Texte                              Dir ----rwed 21-Sep-03  20:52:41
Texte.info                        6065 ----rw-d 26-Dez-03  16:55:51
Treffen                            Dir ----rwed 26-Mär-02  23:25:56
Treffen.info                      6065 ----rw-d 26-Dez-03  16:55:51
Web                                Dir ----rwed 04-Apr-04  10:28:41
Web.info                          6065 ----rw-d 26-Dez-03  16:55:51
16 files - 11 directories - 417 blocks used

2) With this Amiga directory listing from the same directory copied within 
UAE with MirrorCopy to a virtual Amiga filesystem that is located on the 
Linux host filesystem:

Adressen                           Dir ----rwed 21-Mär-04  14:30:23
Adressen.info                     6065 ----rw-d 21-Mär-04  14:30:40
Fotos                              Dir ----rwed 17-Jan-04  16:39:19
Fotos.info                        6065 ----rw-d 26-Dez-03  15:55:51
GmG                                Dir ----rwed 25-Jul-02  19:29:56
Ideen.txt                         1091 ----rw-d 04-Dez-01  21:34:58
Ideen.txt.info                    2747 ----rw-d 26-Dez-03  15:55:51
Urlaub    Dir ----rwed 24-Aug-02  22:02:09
Apache.log                   1743 ----rw-d 24-Mai-01  14:05:15
Apache.log.info              2747 ----rw-d 26-Dez-03  15:55:51
Liebe                              Dir ----rwed 12-Mai-02  23:46:18
Liebe.info                        6065 ----rw-d 26-Dez-03  15:55:51
Mailinglisten                      Dir ----rwed 16-Sep-02  17:18:55
Mailinglisten.info                6065 ----rw-d 26-Dez-03  15:55:51
Grusskarte.zip             730984 ----rwed 12-Mär-03  19:25:34
RCS                                Dir ----rwed 04-Dez-01  21:34:58
RCS.info                          6065 ----rw-d 26-Dez-03  15:55:51
Team                               Dir ----rwed 06-Mär-02  19:42:59
Team.info                         6131 ----rw-d 26-Dez-03  15:55:51
Team.txt                           187 ----rw-d 22-Mai-01  22:51:15
Team.txt.info                     2747 ----rw-d 26-Dez-03  15:55:51
Texte                              Dir ----rwed 21-Sep-03  20:52:41
Texte.info                        6065 ----rw-d 26-Dez-03  15:55:51
Treffen                            Dir ----rwed 26-Mär-02  22:25:56
Treffen.info                      6065 ----rw-d 26-Dez-03  15:55:51
Web                                Dir ----rwed Gestern    23:54:14
Web.info                          6065 ----rw-d 26-Dez-03  15:55:51
16 files - 11 directories - 1675 blocks used

3) Or this Linux directory listing from the very same directory:

martin@deepdance:-> ls -l
insgesamt 832
drwxr-xr-x   2 martin martin     84 2004-03-21 14:30 Adressen
-rw-r-xr-x   1 martin martin   6065 2004-03-21 14:30 Adressen.info
drwxr-xr-x  20 martin martin   4096 2004-01-17 16:39 Fotos
-rw-r-xr-x   1 martin martin   6065 2003-12-26 15:55 Fotos.info
drwxr-xr-x   4 martin martin    140 2002-07-25 19:29 GmG
-rw-r-xr-x   1 martin martin   1091 2001-12-04 21:34 Ideen.txt
-rw-r-xr-x   1 martin martin   2747 2003-12-26 15:55 Ideen.txt.info
-rw-r-xr-x   1 martin martin   1743 2001-05-24 14:05 Apache.log
-rw-r-xr-x   1 martin martin   2747 2003-12-26 15:55 Apache.log.info
drwxr-xr-x   4 martin martin    120 2002-08-24 22:02 Urlaub 
drwxr-xr-x   2 martin martin     65 2002-05-12 23:46 Liebe
-rw-r-xr-x   1 martin martin   6065 2003-12-26 15:55 Liebe.info
drwxr-xr-x   3 martin martin    127 2002-09-16 17:18 Mailinglisten
-rw-r-xr-x   1 martin martin   6065 2003-12-26 15:55 Mailinglisten.info
-rwxr-xr-x   1 martin martin 730984 2003-03-12 19:25 Grusskarte.zip
drwxr-xr-x   2 martin martin     59 2001-12-04 21:34 RCS
-rw-r-xr-x   1 martin martin   6065 2003-12-26 15:55 RCS.info
drwxr-xr-x   2 martin martin     25 2002-03-06 19:42 Team
-rw-r-xr-x   1 martin martin   6131 2003-12-26 15:55 Team.info
-rw-r-xr-x   1 martin martin    187 2001-05-22 22:51 Team.txt
-rw-r-xr-x   1 martin martin   2747 2003-12-26 15:55 Team.txt.info
drwxr-xr-x   6 martin martin   4096 2003-09-21 20:52 Texte
-rw-r-xr-x   1 martin martin   6065 2003-12-26 15:55 Texte.info
drwxr-xr-x   2 martin martin     33 2002-03-26 22:25 Treffen
-rw-r-xr-x   1 martin martin   6065 2003-12-26 15:55 Treffen.info
-rw-r--r--   1 martin martin   6000 2004-10-30 23:54 _UAEFSDB.___
drwxr-xr-x  11 martin martin   4096 2004-10-30 23:54 Web
-rw-r-xr-x   1 martin martin   6065 2003-12-26 15:55 Web.info

(Note: I altered some filenames for privacy.)

All three directory listing should show the exact same dates and times for 
each file. But from what I see this is only true for listing 2 and 3. 

Listing 1 from the Amiga CD-R which is accessed within UAE via CacheCDFS 
differs from Listing 2 and 3 which show the contents of the copy located 
on the host filesystem (XFS under Linux).

The crazy thing is this:

Sometimes UAE gets the time right (for example with Apache.log or 
Team.txt) and often it doesn't get it right in the copy (for example with 
Grusskarte.zip or Ideen.txt or most, if not all directories where there is 
one hour difference).

So still there is something strange going on in the date code of UAE. 
Seems that the fix, you, Richard, applied for the timezone handling 
between Amiga native filesystems and the virtual filesystem that stores 
files on the host filesystem, doesn't step in in all situations.

Any idea?

Regards,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de

Other related posts: