Comments (5)
Well the redis ExpireAt command takes a Unix time which is in UTC which is what
the RedisClient sends.
If you're -1hr off your local time, then I'm guessing your servers are located
in the UK?
It sounds to me that your systems time may not be in sync. I would double check
that the client and servers are all configured with the correct time and time
zone.
- Demis
Original comment by [email protected]
on 31 Aug 2010 at 4:14
from servicestack.
All servers in france, same timezone, i checked this first.
The différence is in fact -2h
Expireat works fine, with a custom convert function.
Original comment by [email protected]
on 31 Aug 2010 at 4:42
from servicestack.
So you're saying that your own custom function to generate a unixtime works?
This is the source code of the one used in 'redis.ExpireEntryAt':
public const long UnixEpoch = 621355968000000000L;
public static long ToUnixTime(this DateTime dateTime)
{
var epoch = (dateTime.ToUniversalTime().Ticks - UnixEpoch) / TimeSpan.TicksPerSecond;
return epoch;
}
I'm guessing your *custom one that works* is similar but without the
'.ToUniversalTime()'?
I just checked with #redis and they confirm its UTC.
So frances local time now is: 7:00pm
UTC is 5:00pm
Using MONITOR which value gets to redis?
Original comment by [email protected]
on 31 Aug 2010 at 5:04
from servicestack.
sorry, your product is ok.
here is my real problem:
http://code.google.com/p/redis/issues/detail?id=318
Original comment by [email protected]
on 1 Sep 2010 at 10:14
from servicestack.
Sweet, good to know.
Original comment by [email protected]
on 1 Sep 2010 at 10:20
- Changed state: Fixed
from servicestack.
Related Issues (20)
- Serializing byte[] cannot be Deserialized.
- CreateTransaction failing HOT 1
- TypeInitializationException when a class have a property that return an XElement value
- TypeInitializationException when deserialiaze a string to a class that have a static property
- Priority of Web Sockets HOT 1
- How to Store values in session
- Implement Forms Authentication Using ServiceStack HOT 1
- OrmPostgreSQL HOT 1
- Supporting for redis ZCOUNT command
- WCF helper implementation
- Null reference exception on call to GetAll HOT 2
- Broken link on Project Home HOT 2
- DeSerialising dictionary with type Dictionary<Tuple<string,string>,double>>() does not work
- Wrong Encoding
- ServiceStack.Redis reading large files from Redis server
- ServiceStack.Redis.RedisResponseException
- Db number is fogotten when using pooled clients.
- SOAP request and response wrappers
- Tutorial references ServiceStackHttpHandlerFactory which isn't included in ServiceStack.dll
- Future roadmap suggestion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicestack.