mirror of
				https://github.com/ipfs/kubo.git
				synced 2025-10-31 09:56:05 +08:00 
			
		
		
		
	 f1ee23770d
			
		
	
	f1ee23770d
	
	
	
		
			
			test(time) expose time format var License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			249 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			249 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package util
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| func TestTimeFormatParseInversion(t *testing.T) {
 | |
| 	v, err := ParseRFC3339(FormatRFC3339(time.Now()))
 | |
| 	if err != nil {
 | |
| 		t.Fatal(err)
 | |
| 	}
 | |
| 	if v.Location() != time.UTC {
 | |
| 		t.Fatal("Time should be UTC")
 | |
| 	}
 | |
| }
 |